class FormDataExtractor implements FormDataExtractorInterface

Default implementation of {@link FormDataExtractorInterface}.

Methods

__construct(ValueExporter $valueExporter = null, $triggerDeprecationNotice = true)

Constructs a new data extractor.

array
extractConfiguration(FormInterface $form)

Extracts the configuration data of a form.

array
extractDefaultData(FormInterface $form)

Extracts the default data of a form.

array
extractSubmittedData(FormInterface $form)

Extracts the submitted data of a form.

array
extractViewVariables(FormView $view)

Extracts the view variables of a form.

Details

at line line 29
__construct(ValueExporter $valueExporter = null, $triggerDeprecationNotice = true)

Constructs a new data extractor.

Parameters

ValueExporter $valueExporter
$triggerDeprecationNotice

at line line 39
array extractConfiguration(FormInterface $form)

Extracts the configuration data of a form.

Parameters

FormInterface $form

Return Value

array Information about the form's configuration

at line line 67
array extractDefaultData(FormInterface $form)

Extracts the default data of a form.

Parameters

FormInterface $form

Return Value

array Information about the form's default data

at line line 90
array extractSubmittedData(FormInterface $form)

Extracts the submitted data of a form.

Parameters

FormInterface $form

Return Value

array Information about the form's submitted data

at line line 149
array extractViewVariables(FormView $view)

Extracts the view variables of a form.

Parameters

FormView $view

Return Value

array Information about the view's variables