You are here

public function WidgetBaseInterface::extractFormValues in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/Field/WidgetBaseInterface.php \Drupal\Core\Field\WidgetBaseInterface::extractFormValues()

Extracts field values from submitted form values.

Parameters

\Drupal\Core\Field\FieldItemListInterface $items: The field values. This parameter is altered by reference to receive the incoming form values.

array $form: The form structure where field elements are attached to. This might be a full form structure, or a sub-element of a larger form.

\Drupal\Core\Form\FormStateInterface $form_state: The form state.

1 method overrides WidgetBaseInterface::extractFormValues()
WidgetBase::extractFormValues in core/lib/Drupal/Core/Field/WidgetBase.php
Extracts field values from submitted form values.

File

core/lib/Drupal/Core/Field/WidgetBaseInterface.php, line 58
Contains \Drupal\Core\Field\WidgetBaseInterface.

Class

WidgetBaseInterface
Base interface definition for "Field widget" plugins.

Namespace

Drupal\Core\Field

Code

public function extractFormValues(FieldItemListInterface $items, array $form, FormStateInterface $form_state);