Documentation

FormDataCollectorInterface extends DataCollectorInterface

Collects and structures information about forms.

Tags
author

Bernhard Schussek bschussek@gmail.com

Table of Contents

Methods

associateFormWithView()  : mixed
Specifies that the given objects represent the same conceptual form.
buildFinalFormTree()  : mixed
Assembles the data collected about the given form and its children as a tree-like data structure.
buildPreliminaryFormTree()  : mixed
Assembles the data collected about the given form and its children as a tree-like data structure.
collect()  : mixed
Collects data for the given Request and Response.
collectConfiguration()  : mixed
Stores configuration data of the given form and its children.
collectDefaultData()  : mixed
Stores the default data of the given form and its children.
collectSubmittedData()  : mixed
Stores the submitted data of the given form and its children.
collectViewVariables()  : mixed
Stores the view variables of the given form view and its children.
getData()  : array<string|int, mixed>|Data
Returns all collected data.
getName()  : string
Returns the name of the collector.
reset()  : mixed

Methods

buildFinalFormTree()

Assembles the data collected about the given form and its children as a tree-like data structure.

public buildFinalFormTree(FormInterface $form, FormView $view) : mixed

The result can be queried using .

Contrary to , a object has to be passed. The tree structure of this view object will be used for structuring the resulting data. That means, if a child is present in the view, but not in the form, it will be present in the final data array anyway.

When instances are present in the view tree, for which no corresponding objects can be found in the form tree, only the view data will be included in the result. If a corresponding exists otherwise, call before calling this method.

Parameters
$form : FormInterface
$view : FormView

buildPreliminaryFormTree()

Assembles the data collected about the given form and its children as a tree-like data structure.

public buildPreliminaryFormTree(FormInterface $form) : mixed

The result can be queried using .

Parameters
$form : FormInterface

        
On this page

Search results