summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwebchick2013-12-22 19:40:14 (GMT)
committerwebchick2013-12-22 19:40:14 (GMT)
commit9c7b92caeee17d432e588291fe92a66e2ef9482d (patch)
tree8e13dedad8f082e68a3a89ac2a674bd512fd4509
parent9793e997a778fda76e9da8aab69e4ebb8ac5fb01 (diff)
Issue #2080625 by areke, mrsinguyen: Remove unused local variables for the field module.
-rw-r--r--core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Field/FieldWidget/TestFieldWidgetMultiple.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Field/FieldWidget/TestFieldWidgetMultiple.php b/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Field/FieldWidget/TestFieldWidgetMultiple.php
index 21edf08..be8fed9 100644
--- a/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Field/FieldWidget/TestFieldWidgetMultiple.php
+++ b/core/modules/field/tests/modules/field_test/lib/Drupal/field_test/Plugin/Field/FieldWidget/TestFieldWidgetMultiple.php
@@ -58,7 +58,7 @@ class TestFieldWidgetMultiple extends WidgetBase {
*/
public function formElement(FieldItemListInterface $items, $delta, array $element, array &$form, array &$form_state) {
$values = array();
- foreach ($items as $delta => $item) {
+ foreach ($items as $item) {
$values[] = $item->value;
}
$element += array(