core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php | 4 +--- core/modules/text/text.module | 14 -------------- 2 files changed, 1 insertion(+), 17 deletions(-) diff --git a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php index 75e510e..1dd5257 100644 --- a/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php +++ b/core/lib/Drupal/Core/Entity/ContentEntityStorageBase.php @@ -150,9 +150,7 @@ protected function loadFieldItems(array $entities) { $translation = $entity->getTranslation($langcode); foreach ($translation as $field_name => $items) { if ($items->getFieldDefinition() instanceof FieldInstanceConfigInterface && !$items->isEmpty()) { - foreach ($items as $delta => $item) { - $data[$langcode][$field_name][$delta] = $item->getValue(); - } + $items->getValue(); } } } diff --git a/core/modules/text/text.module b/core/modules/text/text.module index e619676..623f14b 100644 --- a/core/modules/text/text.module +++ b/core/modules/text/text.module @@ -159,20 +159,6 @@ function text_summary($text, $format = NULL, $size = NULL) { } /** - * Implements hook_filter_format_update(). - */ -function text_filter_format_update($format) { - \Drupal::entityManager()->clearCachedFieldDefinitions(); -} - -/** - * Implements hook_filter_format_disable(). - */ -function text_filter_format_disable($format) { - \Drupal::entityManager()->clearCachedFieldDefinitions(); -} - -/** * Implements hook_field_formatter_info_alter(). */ function text_field_formatter_info_alter(&$info) {