class SubmitButton extends Button implements ClickableInterface
A button that submits the form.
__construct(FormConfigInterface $config) Creates a new button from a form configuration. | from Button | |
bool | offsetExists(mixed $offset) Unsupported method. | from Button |
offsetGet(mixed $offset) Unsupported method. | from Button | |
offsetSet(mixed $offset, mixed $value) Unsupported method. | from Button | |
offsetUnset(mixed $offset) Unsupported method. | from Button | |
FormInterface | setParent(FormInterface $parent = null) Sets the parent form. | from Button |
FormInterface|null | getParent() Returns the parent form. | from Button |
FormInterface | add(FormInterface|string|int $child, string|null $type = null, array $options = array()) Unsupported method. | from Button |
FormInterface | get(string $name) Unsupported method. | from Button |
bool | has(string $name) Unsupported method. | from Button |
$this | remove(string $name) Unsupported method. | from Button |
FormInterface[] | all() Returns all children in this group. | from Button |
FormErrorIterator | getErrors(bool $deep = false, bool $flatten = true) Returns the errors of this form. | from Button |
$this | setData(mixed $modelData) Unsupported method. | from Button |
mixed | getData() Unsupported method. | from Button |
mixed | getNormData() Unsupported method. | from Button |
mixed | getViewData() Unsupported method. | from Button |
array | getExtraData() Unsupported method. | from Button |
FormConfigInterface | getConfig() Returns the button's configuration. | from Button |
bool | isSubmitted() Returns whether the button is submitted. | from Button |
string | getName() Returns the name by which the button is identified in forms. | from Button |
PropertyPathInterface|null | getPropertyPath() Unsupported method. | from Button |
$this | addError(FormError $error) Unsupported method. | from Button |
bool | isValid() Unsupported method. | from Button |
bool | isRequired() Unsupported method. | from Button |
bool | isDisabled() Returns whether this form is disabled. | from Button |
bool | isEmpty() Unsupported method. | from Button |
bool | isSynchronized() Unsupported method. | from Button |
TransformationFailedException|null | getTransformationFailure() Unsupported method. | from Button |
$this | initialize() Unsupported method. | from Button |
$this | handleRequest(mixed $request = null) Unsupported method. | from Button |
$this | submit(mixed $submittedData, bool $clearMissing = true) Submits data to the button. | |
FormInterface | getRoot() Returns the root of the form tree. | from Button |
bool | isRoot() Returns whether the field is the root of the form tree. | from Button |
FormView | createView(FormView $parent = null) Creates a view. | from Button |
int | count() Unsupported method. | from Button |
EmptyIterator | getIterator() Unsupported method. | from Button |
bool | isClicked() Returns whether this element was clicked. |
Creates a new button from a form configuration.
FormConfigInterface | $config | The button's configuration |
Unsupported method.
mixed | $offset |
bool | Always returns false |
Unsupported method.
This method should not be invoked.
mixed | $offset |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
mixed | $offset | |
mixed | $value |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
mixed | $offset |
BadMethodCallException |
Sets the parent form.
FormInterface | $parent |
FormInterface |
AlreadySubmittedException | if the form has already been submitted |
LogicException | when trying to set a parent for a form with an empty name |
Returns the parent form.
FormInterface|null | The parent form or null if there is none |
Unsupported method.
This method should not be invoked.
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 |
FormInterface |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
string | $name | The name of the child |
FormInterface |
BadMethodCallException |
Unsupported method.
string | $name | The name of the child |
bool |
Unsupported method.
This method should not be invoked.
string | $name | The name of the child to remove |
$this |
BadMethodCallException |
Returns all children in this group.
FormInterface[] |
Returns the errors of this form.
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 |
FormErrorIterator | An iterator over the {@link FormError} instances that where added to this form |
Unsupported method.
This method should not be invoked.
mixed | $modelData | The data formatted as expected for the underlying object |
$this |
Unsupported method.
mixed |
Unsupported method.
mixed | when the field is not submitted, the default data is returned. When the field is submitted, the normalized submitted data is returned if the field is valid, null otherwise |
Unsupported method.
mixed |
Unsupported method.
array | The submitted data which do not belong to a child |
Returns the button's configuration.
FormConfigInterface | The configuration |
Returns whether the button is submitted.
bool | true if the form is submitted, false otherwise |
Returns the name by which the button is identified in forms.
string | The name of the form |
Unsupported method.
PropertyPathInterface|null | The property path |
Unsupported method.
FormError | $error |
$this |
BadMethodCallException |
Unsupported method.
bool |
Unsupported method.
bool |
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 |
Unsupported method.
bool |
Unsupported method.
bool |
Unsupported method.
TransformationFailedException|null | The transformation failure |
Unsupported method.
$this |
BadMethodCallException |
Unsupported method.
mixed | $request | The request to handle |
$this |
BadMethodCallException |
Submits data to the button.
mixed | $submittedData | The submitted data |
bool | $clearMissing | Whether to set fields to NULL when they are missing in the submitted data |
$this |
AlreadySubmittedException | if the form has already been submitted |
Returns the root of the form tree.
FormInterface | The root of the tree |
Returns whether the field is the root of the form tree.
bool |
Creates a view.
FormView | $parent |
FormView | The view |
Unsupported method.
int | Always returns 0 |
Unsupported method.
EmptyIterator | Always returns an empty iterator |
Returns whether this element was clicked.
bool | Whether this element was clicked |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/SubmitButton.html