FormInterface::getName()

string getName() Returns the name by which the form is identified in forms. Return Value string The name of the form

FormInterface::getExtraData()

array getExtraData() Returns the extra data. Return Value array The submitted data which do not belong to a child

FormInterface::getConfig()

FormConfigInterface getConfig() Returns the form's configuration. Return Value FormConfigInterface The configuration

FormInterface::getNormData()

mixed getNormData() Returns the normalized data of the field. Return Value mixed When the field is not submitted, the default data is returned When the field is submitted, the normalized submitted data is returned if the field is valid, null otherwise.

FormInterface::getErrors()

FormErrorIterator getErrors(bool $deep = false, bool $flatten = true) Returns the errors of this form. Parameters bool $deep Whether to include errors of child forms as well bool $flatten Whether to flatten the list of errors in case $deep is set to true Return Value FormErrorIterator An iterator over the {@link FormError} instances that where added to this form

FormInterface::all()

FormInterface[] all() Returns all children in this group. Return Value FormInterface[] An array of FormInterface instances

FormInterface::addError()

FormInterface addError(FormError $error) Adds an error to this form. Parameters FormError $error Return Value FormInterface The form instance

FormInterface::add()

FormInterface add(FormInterface|string|int $child, string|null $type = null, array $options = array()) Adds or replaces a child to the form. Parameters FormInterface|string|int $child The FormInterface instance or the name of the child string|null $type The child's type, if a name was passed array $options The child's options, if a name was passed Return Value FormInterface The form instance Exceptions AlreadySubmittedException If the form has already been submitted. LogicExc

FormInterface::createView()

FormView createView(FormView $parent = null) Creates a view. Parameters FormView $parent The parent view Return Value FormView The view

FormInterface

interface FormInterface implements Iterator, FormInterface Methods FormInterface setParent(FormInterface $parent = null) Sets the parent form. from FormInterface FormInterface|null getParent() Returns the parent form. from FormInterface FormInterface add(FormInterface|string|int $child, string|null $type = null, array $options = array()) Adds or replaces a child to the form. from FormInterface FormInterface get(string $name) Returns the child with the given name. from FormInte