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::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::getData()

mixed getData() Returns the data in the format needed for the underlying object. Return Value mixed

FormInterface::getConfig()

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

FormInterface::createView()

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

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

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