diff --git a/core/modules/edit/lib/Drupal/edit/Form/EditFieldForm.php b/core/modules/edit/lib/Drupal/edit/Form/EditFieldForm.php index af07924..b4f4111 100644 --- a/core/modules/edit/lib/Drupal/edit/Form/EditFieldForm.php +++ b/core/modules/edit/lib/Drupal/edit/Form/EditFieldForm.php @@ -234,7 +234,7 @@ protected function simplify(array &$form, array &$form_state) { * The name of the field found or NULL if not found. */ protected function getChangedFieldName(ContentEntityInterface $entity) { - foreach ($entity->getPropertyDefinitions() as $field) { + foreach ($entity->getFieldDefinitions() as $field) { if ($field->getType() == 'changed') { return $field->getName(); }