diff --git a/core/lib/Drupal/Core/Entity/EntityStorageControllerBase.php b/core/lib/Drupal/Core/Entity/EntityStorageControllerBase.php index 6069cec..43ff5f1 100644 --- a/core/lib/Drupal/Core/Entity/EntityStorageControllerBase.php +++ b/core/lib/Drupal/Core/Entity/EntityStorageControllerBase.php @@ -144,7 +144,7 @@ public function invokeFieldMethod($method, EntityInterface $entity) { // @todo getTranslation() only works on NG entities. Remove the condition // and the second code branch when all core entity types are converted. if ($translation = $entity->getTranslation($langcode)) { - foreach ($translation as $field_name => $field) { + foreach ($translation as $field) { $field->$method(); } }