FormDataExtractor

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

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

Constructs a new data extractor.

Parameters

ValueExporter $valueExporter
$triggerDeprecationNotice

array extractConfiguration(FormInterface $form)

Extracts the configuration data of a form.

Parameters

FormInterface $form The form

Return Value

array Information about the form's configuration

array extractDefaultData(FormInterface $form)

Extracts the default data of a form.

Parameters

FormInterface $form The form

Return Value

array Information about the form's default data

array extractSubmittedData(FormInterface $form)

Extracts the submitted data of a form.

Parameters

FormInterface $form The form

Return Value

array Information about the form's submitted data

array extractViewVariables(FormView $view)

Extracts the view variables of a form.

Parameters

FormView $view The form view

Return Value

array Information about the view's variables

© 2004–2017 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.2/Symfony/Component/Form/Extension/DataCollector/FormDataExtractor.html