SubmitButton
class SubmitButton extends Button implements ClickableInterface
A button that submits the form.
Methods
Adds or replaces a child to the form.
Returns the property path that the form is mapped to.
Returns whether the data in the different formats is synchronized.
Returns the data transformation failure, if any.
Inspects the given request and calls {@link submit()} if the form was submitted.
Submits data to the button.
Returns whether this element was clicked.
Details
FormInterface
add(FormInterface|string|int $child, string|null $type = null, array $options = array())
Adds or replaces a child to the form.
FormErrorIterator
getErrors(bool $deep = false, bool $flatten = true)
Returns the errors of this form.
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.
bool
isDisabled()
Returns whether this form is disabled.
The content of a disabled form is displayed, but not allowed to be modified. The validation of modified disabled forms should fail.
Forms whose parents are disabled are considered disabled regardless of their own state.
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()}.
TransformationFailedException|null
getTransformationFailure()
Returns the data transformation failure, if any.
$this
initialize()
Initializes the form tree.
Should be called on the root form after constructing the tree.