Mercurial > hg > isophonics-drupal-site
comparison core/lib/Drupal/Core/Entity/EntityChangesDetectionTrait.php @ 17:129ea1e6d783
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:21:36 +0000 |
parents | 1fec387a4317 |
children |
comparison
equal
deleted
inserted
replaced
16:c2387f117808 | 17:129ea1e6d783 |
---|---|
28 $entity_type->getKey('revision'), | 28 $entity_type->getKey('revision'), |
29 $entity_type->getKey('revision_translation_affected'), | 29 $entity_type->getKey('revision_translation_affected'), |
30 ]; | 30 ]; |
31 $fields = array_merge($fields, array_values($entity_type->getRevisionMetadataKeys())); | 31 $fields = array_merge($fields, array_values($entity_type->getRevisionMetadataKeys())); |
32 | 32 |
33 // Computed fields should be skipped by the check for translation changes. | |
34 foreach (array_diff_key($entity->getFieldDefinitions(), array_flip($fields)) as $field_name => $field_definition) { | |
35 if ($field_definition->isComputed()) { | |
36 $fields[] = $field_name; | |
37 } | |
38 } | |
39 | |
33 return $fields; | 40 return $fields; |
34 } | 41 } |
35 | 42 |
36 } | 43 } |