You are here

public function FormWidgetInterface::extractFormValues in Typed Data API enhancements 8

Extracts the data value from submitted form values.

Parameters

\Drupal\Core\TypedData\TypedDataInterface $data: The data to be updated with the submitted form values.

\Drupal\Core\Form\SubformStateInterface $form_state: The form state of the widget's form.

6 methods override FormWidgetInterface::extractFormValues()
BrokenWidget::extractFormValues in src/Plugin/TypedDataFormWidget/BrokenWidget.php
Extracts the data value from submitted form values.
DatetimeRangeWidget::extractFormValues in src/Plugin/TypedDataFormWidget/DatetimeRangeWidget.php
Extracts the data value from submitted form values.
DatetimeWidget::extractFormValues in src/Plugin/TypedDataFormWidget/DatetimeWidget.php
Extracts the data value from submitted form values.
SelectWidget::extractFormValues in src/Plugin/TypedDataFormWidget/SelectWidget.php
Extracts the data value from submitted form values.
TextareaWidget::extractFormValues in src/Plugin/TypedDataFormWidget/TextareaWidget.php
Extracts the data value from submitted form values.

... See full list

File

src/Widget/FormWidgetInterface.php, line 58

Class

FormWidgetInterface
Interface definition for form widget plugins.

Namespace

Drupal\typed_data\Widget

Code

public function extractFormValues(TypedDataInterface $data, SubformStateInterface $form_state);