Verified Commit 63cebe7e authored by Dave Long's avatar Dave Long
Browse files

Issue #3378657 by dineshkumarbollu, gorkagr, smustgrave: Duplicate declaration...

Issue #3378657 by dineshkumarbollu, gorkagr, smustgrave: Duplicate declaration of $context in WidgetBase

(cherry picked from commit 9f1ef0f4)
parent 9293b10a
Loading
Loading
Loading
Loading
+0 −9
Original line number Diff line number Diff line
@@ -111,15 +111,6 @@ public function form(FieldItemListInterface $items, array &$form, FormStateInter
      $elements = $this->formMultipleElements($items, $form, $form_state);
    }

    // Allow modules to alter the field multi-value widget form element.
    // This hook can also be used for single-value fields.
    $context = [
      'form' => $form,
      'widget' => $this,
      'items' => $items,
      'default' => $this->isDefaultValueWidget($form_state),
    ];

    // Populate the 'array_parents' information in $form_state->get('field')
    // after the form is built, so that we catch changes in the form structure
    // performed in alter() hooks.