Skip to content
Snippets Groups Projects
Commit 09fd48a2 authored by Angie Byron's avatar Angie Byron
Browse files

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
Branches
Tags
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
......@@ -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();
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment