diff --git a/core/lib/Drupal/Core/Entity/FieldableEntityStorageControllerBase.php b/core/lib/Drupal/Core/Entity/FieldableEntityStorageControllerBase.php index 847f5a4..8b48800 100644 --- a/core/lib/Drupal/Core/Entity/FieldableEntityStorageControllerBase.php +++ b/core/lib/Drupal/Core/Entity/FieldableEntityStorageControllerBase.php @@ -10,7 +10,7 @@ use Drupal\Core\Entity\Field\PrepareCacheInterface; use Drupal\field\FieldInterface; use Drupal\field\FieldInstanceInterface; -use Drupal\field\Plugin\Type\FieldType\ConfigField; +use Drupal\field\Plugin\Type\FieldType\ConfigFieldItemInterface; use Symfony\Component\DependencyInjection\Container; abstract class FieldableEntityStorageControllerBase extends EntityStorageControllerBase implements FieldableEntityStorageControllerInterface { @@ -88,7 +88,7 @@ protected function loadFieldItems(array $entities, $age) { foreach ($entity->getTranslationLanguages() as $langcode => $language) { $translation = $entity->getTranslation($langcode); foreach ($translation as $field_name => $items) { - if ($items instanceof ConfigField && !$items->isEmpty()) { + if ($items instanceof ConfigFieldItemInterface && !$items->isEmpty()) { foreach ($items as $delta => $item) { if ($item instanceof PrepareCacheInterface) { // Load the cache values.