class SubmitButtonBuilder extends ButtonBuilder
A builder for {@link SubmitButton} instances.
protected bool | $locked | from ButtonBuilder |
__construct(string|null $name, array $options = array()) | from ButtonBuilder | |
FormBuilderInterface | add(string|int|FormBuilderInterface $child, string|null $type = null, array $options = array()) Unsupported method. | from ButtonBuilder |
FormBuilderInterface | create(string $name, string|null $type = null, array $options = array()) Unsupported method. | from ButtonBuilder |
FormBuilderInterface | get(string $name) Unsupported method. | from ButtonBuilder |
FormBuilderInterface | remove(string $name) Unsupported method. | from ButtonBuilder |
bool | has(string $name) Unsupported method. | from ButtonBuilder |
array | all() Returns the children. | from ButtonBuilder |
FormInterface | getForm() Creates the button. | |
$this | addEventListener(string $eventName, callable $listener, int $priority = 0) Unsupported method. | from ButtonBuilder |
$this | addEventSubscriber(EventSubscriberInterface $subscriber) Unsupported method. | from ButtonBuilder |
$this | addViewTransformer(DataTransformerInterface $viewTransformer, bool $forcePrepend = false) Unsupported method. | from ButtonBuilder |
$this | resetViewTransformers() Unsupported method. | from ButtonBuilder |
$this | addModelTransformer(DataTransformerInterface $modelTransformer, bool $forceAppend = false) Unsupported method. | from ButtonBuilder |
$this | resetModelTransformers() Unsupported method. | from ButtonBuilder |
$this | setAttribute(string $name, mixed $value) Sets the value for an attribute. | from ButtonBuilder |
$this | setAttributes(array $attributes) Sets the attributes. | from ButtonBuilder |
$this | setDataMapper(DataMapperInterface $dataMapper = null) Unsupported method. | from ButtonBuilder |
$this | setDisabled(bool $disabled) Set whether the button is disabled. | from ButtonBuilder |
$this | setEmptyData(mixed $emptyData) Unsupported method. | from ButtonBuilder |
$this | setErrorBubbling(bool $errorBubbling) Unsupported method. | from ButtonBuilder |
$this | setRequired(bool $required) Unsupported method. | from ButtonBuilder |
$this | setPropertyPath(string|PropertyPathInterface|null $propertyPath) Unsupported method. | from ButtonBuilder |
$this | setMapped(bool $mapped) Unsupported method. | from ButtonBuilder |
$this | setByReference(bool $byReference) Unsupported method. | from ButtonBuilder |
$this | setCompound(bool $compound) Unsupported method. | from ButtonBuilder |
$this | setType(ResolvedFormTypeInterface $type) Sets the type of the button. | from ButtonBuilder |
$this | setData(mixed $data) Unsupported method. | from ButtonBuilder |
$this | setDataLocked(bool $locked) Unsupported method. | from ButtonBuilder |
setFormFactory(FormFactoryInterface $formFactory) Unsupported method. | from ButtonBuilder | |
$this | setAction(string $action) Unsupported method. | from ButtonBuilder |
$this | setMethod(string $method) Unsupported method. | from ButtonBuilder |
$this | setRequestHandler(RequestHandlerInterface $requestHandler) Unsupported method. | from ButtonBuilder |
$this | setAutoInitialize(bool $initialize) Unsupported method. | from ButtonBuilder |
$this | setInheritData(bool $inheritData) Unsupported method. | from ButtonBuilder |
FormConfigInterface | getFormConfig() Builds and returns the button configuration. | from ButtonBuilder |
EventDispatcherInterface | getEventDispatcher() Unsupported method. | from ButtonBuilder |
string | getName() Returns the name of the form used as HTTP parameter. | from ButtonBuilder |
PropertyPathInterface|null | getPropertyPath() Unsupported method. | from ButtonBuilder |
bool | getMapped() Unsupported method. | from ButtonBuilder |
bool | getByReference() Unsupported method. | from ButtonBuilder |
bool | getCompound() Unsupported method. | from ButtonBuilder |
ResolvedFormTypeInterface | getType() Returns the form type used to construct the button. | from ButtonBuilder |
DataTransformerInterface[] | getViewTransformers() Unsupported method. | from ButtonBuilder |
DataTransformerInterface[] | getModelTransformers() Unsupported method. | from ButtonBuilder |
DataMapperInterface|null | getDataMapper() Unsupported method. | from ButtonBuilder |
bool | getRequired() Unsupported method. | from ButtonBuilder |
bool | getDisabled() Returns whether the button is disabled. | from ButtonBuilder |
bool | getErrorBubbling() Unsupported method. | from ButtonBuilder |
mixed | getEmptyData() Unsupported method. | from ButtonBuilder |
array | getAttributes() Returns additional attributes of the button. | from ButtonBuilder |
bool | hasAttribute(string $name) Returns whether the attribute with the given name exists. | from ButtonBuilder |
mixed | getAttribute(string $name, mixed $default = null) Returns the value of the given attribute. | from ButtonBuilder |
mixed | getData() Unsupported method. | from ButtonBuilder |
string|null | getDataClass() Unsupported method. | from ButtonBuilder |
bool | getDataLocked() Unsupported method. | from ButtonBuilder |
FormFactoryInterface | getFormFactory() Unsupported method. | from ButtonBuilder |
string | getAction() Unsupported method. | from ButtonBuilder |
string | getMethod() Unsupported method. | from ButtonBuilder |
RequestHandlerInterface | getRequestHandler() Unsupported method. | from ButtonBuilder |
bool | getAutoInitialize() Unsupported method. | from ButtonBuilder |
bool | getInheritData() Unsupported method. | from ButtonBuilder |
array | getOptions() Returns all options passed during the construction of the button. | from ButtonBuilder |
bool | hasOption(string $name) Returns whether a specific option exists. | from ButtonBuilder |
mixed | getOption(string $name, mixed $default = null) Returns the value of a specific option. | from ButtonBuilder |
int | count() Unsupported method. | from ButtonBuilder |
EmptyIterator | getIterator() Unsupported method. | from ButtonBuilder |
string|null | $name | |
array | $options |
InvalidArgumentException | if the name is empty |
Unsupported method.
This method should not be invoked.
string|int|FormBuilderInterface | $child | |
string|null | $type | |
array | $options |
FormBuilderInterface |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
string | $name | The name of the form or the name of the property |
string|null | $type | The type of the form or null if name is a property |
array | $options | The options |
FormBuilderInterface |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
string | $name | The name of the child |
FormBuilderInterface |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
string | $name |
FormBuilderInterface |
BadMethodCallException |
Unsupported method.
string | $name |
bool |
Returns the children.
array |
Creates the button.
FormInterface | The form |
Unsupported method.
This method should not be invoked.
string | $eventName | The name of the event to listen to |
callable | $listener | The listener to execute |
int | $priority | The priority of the listener. Listeners with a higher priority are called before listeners with a lower priority. |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
EventSubscriberInterface | $subscriber |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
DataTransformerInterface | $viewTransformer | |
bool | $forcePrepend | If set to true, prepend instead of appending |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
$this | The configuration object |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
DataTransformerInterface | $modelTransformer | |
bool | $forceAppend | If set to true, append instead of prepending |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
$this | The configuration object |
BadMethodCallException |
Sets the value for an attribute.
string | $name | The name of the attribute |
mixed | $value | The value of the attribute |
$this | The configuration object |
Sets the attributes.
array | $attributes |
$this | The configuration object |
Unsupported method.
This method should not be invoked.
DataMapperInterface | $dataMapper |
$this | The configuration object |
BadMethodCallException |
Set whether the button is disabled.
bool | $disabled | Whether the form is disabled |
$this | The configuration object |
Unsupported method.
This method should not be invoked.
mixed | $emptyData | The empty data |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
bool | $errorBubbling |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
bool | $required |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
string|PropertyPathInterface|null | $propertyPath | The property path or null if the path should be set automatically based on the form's name |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
bool | $mapped | Whether the form should be mapped |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
bool | $byReference | Whether the data should be modified by reference |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
bool | $compound | Whether the form should be compound |
$this | The configuration object |
BadMethodCallException |
Sets the type of the button.
ResolvedFormTypeInterface | $type |
$this | The configuration object |
Unsupported method.
This method should not be invoked.
mixed | $data | The data of the form in application format |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
bool | $locked | Whether to lock the default data |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
This method should not be invoked.
FormFactoryInterface | $formFactory |
BadMethodCallException |
Unsupported method.
string | $action | The target URL of the form |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
string | $method | The HTTP method of the form |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
RequestHandlerInterface | $requestHandler |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
bool | $initialize | true to initialize the form automatically, false to suppress automatic initialization. In the second case, you need to call {@link FormInterface::initialize()} manually |
$this | The configuration object |
BadMethodCallException |
Unsupported method.
bool | $inheritData | Whether the form should inherit its parent's data |
$this | The configuration object |
BadMethodCallException |
Builds and returns the button configuration.
FormConfigInterface |
Unsupported method.
EventDispatcherInterface | The dispatcher |
Returns the name of the form used as HTTP parameter.
string | The form name |
Unsupported method.
PropertyPathInterface|null | The property path |
Unsupported method.
bool | Whether the form is mapped |
Unsupported method.
bool | Whether to modify the form's data by reference |
Unsupported method.
bool | Whether the form is compound |
Returns the form type used to construct the button.
ResolvedFormTypeInterface | The form's type |
Unsupported method.
DataTransformerInterface[] | An array of {@link DataTransformerInterface} instances |
Unsupported method.
DataTransformerInterface[] | An array of {@link DataTransformerInterface} instances |
Unsupported method.
DataMapperInterface|null | The data mapper |
Unsupported method.
bool | Whether the form is required |
Returns whether the button is disabled.
bool | Whether the form is disabled |
Unsupported method.
bool | Whether errors will bubble up |
Unsupported method.
mixed | The data returned if the form is empty |
Returns additional attributes of the button.
array | An array of key-value combinations |
Returns whether the attribute with the given name exists.
string | $name | The attribute name |
bool | Whether the attribute exists |
Returns the value of the given attribute.
string | $name | The attribute name |
mixed | $default | The value returned if the attribute does not exist |
mixed | The attribute value |
Unsupported method.
mixed | The initial form data |
Unsupported method.
string|null | The data class or null |
Unsupported method.
bool | Whether the data is locked |
Unsupported method.
FormFactoryInterface | The form factory |
Unsupported method.
string | The target URL of the form |
Unsupported method.
string | The HTTP method of the form |
Unsupported method.
RequestHandlerInterface | The request handler |
Unsupported method.
bool | returns true if the form should be initialized when created, false otherwise |
Unsupported method.
bool | Whether the form should inherit its parent's data |
Returns all options passed during the construction of the button.
array | The passed options |
Returns whether a specific option exists.
string | $name | The option name, |
bool | Whether the option exists |
Returns the value of a specific option.
string | $name | The option name |
mixed | $default | The value returned if the option does not exist |
mixed | The option value |
Unsupported method.
int | Always returns 0 |
Unsupported method.
EmptyIterator | Always returns an empty iterator |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/SubmitButtonBuilder.html