W3cubDocs

/Symfony 2.7

Symfony\Component\Form\Extension\DataCollector\FormDataExtractorInterface

interface FormDataExtractorInterface

Extracts arrays of information out of forms.

Methods

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

public 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

public 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

public 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

public 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