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
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.
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
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
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
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
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
bool isSubmitted() Returns whether the form is submitted. Return Value bool true if the form is submitted, false otherwise
bool isRoot() Returns whether the field is the root of the form tree. Return Value bool
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
Page 462 of 787