Form::offsetGet()

FormInterface offsetGet(string $name) Returns the child with the given name (implements the \ArrayAccess interface). Parameters string $name The name of the child Return Value FormInterface The child form Exceptions OutOfBoundsException If the named child does not exist.

Form::offsetGet()

FormField offsetGet(string $name) Gets the value of a field. Parameters string $name The field name Return Value FormField The associated Field instance Exceptions InvalidArgumentException if the field does not exist

Form::offsetSet()

offsetSet(string $name, string|array $value) Sets the value of a field. Parameters string $name The field name string|array $value The value of the field Exceptions InvalidArgumentException if the field does not exist

Form::offsetSet()

offsetSet(string $name, FormInterface $child) Adds a child to the form (implements the \ArrayAccess interface). Parameters string $name Ignored. The name of the child is used FormInterface $child The child to be added Exceptions AlreadySubmittedException If the form has already been submitted. LogicException When trying to add a child to a non-compound form. See also self::add()

Form::isRoot()

bool isRoot() Returns whether the field is the root of the form tree. Return Value bool

Form::isValid()

bool isValid() Returns whether the form and all children are valid. If the form is not submitted, this method always returns false. Return Value bool

Form::isSubmitted()

bool isSubmitted() Returns whether the form is submitted. Return Value bool true if the form is submitted, false otherwise

Form::isSynchronized()

bool isSynchronized() Returns whether the data in the different formats is synchronized. If the data is not synchronized, you can get the transformation failure by calling {@link getTransformationFailure()}. Return Value bool

Form::offsetExists()

bool offsetExists(string $name) Returns true if the named field exists. Parameters string $name The field name Return Value bool true if the field exists, false otherwise

Form::initialize()

FormInterface initialize() Initializes the form tree. Should be called on the root form after constructing the tree. Return Value FormInterface The form instance