Loading core/lib/Drupal/Core/Field/WidgetBase.php +0 −9 Original line number Diff line number Diff line Loading @@ -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. Loading Loading
core/lib/Drupal/Core/Field/WidgetBase.php +0 −9 Original line number Diff line number Diff line Loading @@ -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. Loading