diff --git a/core/lib/Drupal/Core/Entity/Plugin/DataType/FieldItemList.php b/core/lib/Drupal/Core/Entity/Plugin/DataType/FieldItemList.php index abfd1d1..5e6d7dc 100644 --- a/core/lib/Drupal/Core/Entity/Plugin/DataType/FieldItemList.php +++ b/core/lib/Drupal/Core/Entity/Plugin/DataType/FieldItemList.php @@ -12,8 +12,6 @@ use Drupal\Core\TypedData\TypedDataInterface; use Drupal\Core\TypedData\Plugin\DataType\ItemList; use Drupal\Core\Language\Language; -use Drupal\Core\TypedData\Annotation\DataType; -use Drupal\Core\Annotation\Translation; /** * Defines a data type plugin for entity fields, i.e. the list of field items. @@ -112,7 +110,7 @@ public function getValue($include_computed = FALSE) { } /** - * Overrides \Drupal\Core\TypedData\Plugin\DataType\ItemList::setValue(). + * {@inheritdoc} */ public function setValue($values, $notify = TRUE) { if (!isset($values) || $values === array()) { diff --git a/core/modules/edit/edit.module b/core/modules/edit/edit.module index 339e255..2ae7c02 100644 --- a/core/modules/edit/edit.module +++ b/core/modules/edit/edit.module @@ -186,7 +186,7 @@ function edit_preprocess_field(&$variables) { // Fields that are not part of the entity (i.e. dynamically injected "pseudo // fields") and computed fields are not editable. $definition = $entity->getPropertyDefinition($element['#field_name']); - if ($definition && empty($definition['computed'])) { + if ($definition && !$definition->isComputed()) { $variables['attributes']['data-edit-id'] = $entity->entityType() . '/' . $entity->id() . '/' . $element['#field_name'] . '/' . $element['#language'] . '/' . $element['#view_mode']; } } diff --git a/core/modules/editor/editor.module b/core/modules/editor/editor.module index 6364102..7807fc6 100644 --- a/core/modules/editor/editor.module +++ b/core/modules/editor/editor.module @@ -550,7 +550,7 @@ function _editor_get_processed_text_fields(ContentEntityInterface $entity) { // Find all configurable fields, because only they could have a // text_processing setting. $configurable_fields = array_keys(array_filter($properties, function ($definition) { - return isset($definition['configurable']) && $definition['configurable'] === TRUE; + return $definition->isFieldConfigurable(); })); if (empty($configurable_fields)) { return array();