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

bool offsetExists(string $name) Returns whether a child with the given name exists (implements the \ArrayAccess interface). Parameters string $name The name of the child 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::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::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::isSubmitted()

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

Form::isRoot()

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

Form::isRequired()

bool isRequired() Returns whether the form is required to be filled out. If the form has a parent and the parent is not required, this method will always return false. Otherwise the value set with setRequired() is returned. Return Value bool