Commit 09fd48a2 authored by webchick's avatar webchick

Issue #2081213 by mrsinguyen: Remove Unused local variable () from...

Issue #2081213 by mrsinguyen: Remove Unused local variable () from /core/lib/Drupal/Core/Entity/EntityStorageControllerBase.php.
parent bf7d36d6
......@@ -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();
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment