comparison core/modules/content_moderation/src/Entity/ContentModerationState.php @ 14:1fec387a4317

Update Drupal core to 8.5.2 via Composer
author Chris Cannam
date Mon, 23 Apr 2018 09:46:53 +0100
parents 4c8ae668cc8c
children af1871eacc83
comparison
equal deleted inserted replaced
13:5fb285c0d0e3 14:1fec387a4317
29 * base_table = "content_moderation_state", 29 * base_table = "content_moderation_state",
30 * revision_table = "content_moderation_state_revision", 30 * revision_table = "content_moderation_state_revision",
31 * data_table = "content_moderation_state_field_data", 31 * data_table = "content_moderation_state_field_data",
32 * revision_data_table = "content_moderation_state_field_revision", 32 * revision_data_table = "content_moderation_state_field_revision",
33 * translatable = TRUE, 33 * translatable = TRUE,
34 * internal = TRUE,
34 * entity_keys = { 35 * entity_keys = {
35 * "id" = "id", 36 * "id" = "id",
36 * "revision" = "revision_id", 37 * "revision" = "revision_id",
37 * "uuid" = "uuid", 38 * "uuid" = "uuid",
38 * "uid" = "uid", 39 * "uid" = "uid",
219 */ 220 */
220 protected function realSave() { 221 protected function realSave() {
221 return parent::save(); 222 return parent::save();
222 } 223 }
223 224
225 /**
226 * {@inheritdoc}
227 */
228 protected function getFieldsToSkipFromTranslationChangesCheck() {
229 $field_names = parent::getFieldsToSkipFromTranslationChangesCheck();
230 // We need to skip the parent entity revision ID, since that will always
231 // change on every save, otherwise every translation would be marked as
232 // affected regardless of actual changes.
233 $field_names[] = 'content_entity_revision_id';
234 return $field_names;
235 }
236
224 } 237 }