diff --git a/src/ExternalEntityStorage.php b/src/ExternalEntityStorage.php index 03b06c1c89952d456150ed1709f4d4795388a044..f1a5f450cd48939c65b1c523c4e52f1e1cecc8c0 100644 --- a/src/ExternalEntityStorage.php +++ b/src/ExternalEntityStorage.php @@ -725,7 +725,7 @@ class ExternalEntityStorage extends ContentEntityStorageBase implements External // Check if there are translation data available. foreach ($all_raw_data[$id] as $key => $raw_translation_data) { - if (str_starts_with($key, self::EXTERNAL_ENTITY_TRANSLATION_SUB_FIELD_PREFIX)) { + if (isset($raw_translation_data[$id]) && str_starts_with($key, self::EXTERNAL_ENTITY_TRANSLATION_SUB_FIELD_PREFIX)) { try { $langcode = str_replace(self::EXTERNAL_ENTITY_TRANSLATION_SUB_FIELD_PREFIX, '', $key); $entity_translation_data = $this->extractEntityValuesFromRawData($raw_translation_data[$id]);