class SubmitButtonBuilder extends ButtonBuilder

A builder for {@link SubmitButton} instances.

Properties

protected bool $locked from ButtonBuilder

Methods

__construct(string|null $name, array $options = array())

No description

add(string|int|FormBuilderInterface $child, string|null $type = null, array $options = array())

Unsupported method.

create(string $name, string|null $type = null, array $options = array())

Unsupported method.

get(string $name)

Unsupported method.

remove(string $name)

Unsupported method.

bool
has(string $name)

Unsupported method.

array
all()

Returns the children.

getForm()

Creates the button.

$this
addEventListener(string $eventName, callable $listener, int $priority = 0)

Unsupported method.

$this
addEventSubscriber(EventSubscriberInterface $subscriber)

Unsupported method.

$this
addViewTransformer(DataTransformerInterface $viewTransformer, bool $forcePrepend = false)

Unsupported method.

$this
resetViewTransformers()

Unsupported method.

$this
addModelTransformer(DataTransformerInterface $modelTransformer, bool $forceAppend = false)

Unsupported method.

$this
resetModelTransformers()

Unsupported method.

$this
setAttribute(string $name, mixed $value)

Sets the value for an attribute.

$this
setAttributes(array $attributes)

Sets the attributes.

$this
setDataMapper(DataMapperInterface $dataMapper = null)

Unsupported method.

$this
setDisabled(bool $disabled)

Set whether the button is disabled.

$this
setEmptyData(mixed $emptyData)

Unsupported method.

$this
setErrorBubbling(bool $errorBubbling)

Unsupported method.

$this
setRequired(bool $required)

Unsupported method.

$this
setPropertyPath(string|PropertyPathInterface|null $propertyPath)

Unsupported method.

$this
setMapped(bool $mapped)

Unsupported method.

$this
setByReference(bool $byReference)

Unsupported method.

$this
setCompound(bool $compound)

Unsupported method.

$this
setType(ResolvedFormTypeInterface $type)

Sets the type of the button.

$this
setData(mixed $data)

Unsupported method.

$this
setDataLocked(bool $locked)

Unsupported method.

setFormFactory(FormFactoryInterface $formFactory)

Unsupported method.

$this
setAction(string $action)

Unsupported method.

$this
setMethod(string $method)

Unsupported method.

$this
setRequestHandler(RequestHandlerInterface $requestHandler)

Unsupported method.

$this
setAutoInitialize(bool $initialize)

Unsupported method.

$this
setInheritData(bool $inheritData)

Unsupported method.

getFormConfig()

Builds and returns the button configuration.

string
getName()

Returns the name of the form used as HTTP parameter.

getPropertyPath()

Unsupported method.

bool
getMapped()

Unsupported method.

bool
getByReference()

Unsupported method.

bool
getCompound()

Unsupported method.

getType()

Returns the form type used to construct the button.

getDataMapper()

Unsupported method.

bool
getRequired()

Unsupported method.

bool
getDisabled()

Returns whether the button is disabled.

bool
getErrorBubbling()

Unsupported method.

mixed
getEmptyData()

Unsupported method.

array
getAttributes()

Returns additional attributes of the button.

bool
hasAttribute(string $name)

Returns whether the attribute with the given name exists.

mixed
getAttribute(string $name, mixed $default = null)

Returns the value of the given attribute.

mixed
getData()

Unsupported method.

string|null
getDataClass()

Unsupported method.

bool
getDataLocked()

Unsupported method.

getFormFactory()

Unsupported method.

string
getAction()

Unsupported method.

string
getMethod()

Unsupported method.

bool
getAutoInitialize()

Unsupported method.

bool
getInheritData()

Unsupported method.

array
getOptions()

Returns all options passed during the construction of the button.

bool
hasOption(string $name)

Returns whether a specific option exists.

mixed
getOption(string $name, mixed $default = null)

Returns the value of a specific option.

int
count()

Unsupported method.

getIterator()

Unsupported method.

Details

in ButtonBuilder at line 58
__construct(string|null $name, array $options = array())

Parameters

string|null $name
array $options

Exceptions

InvalidArgumentException if the name is empty

in ButtonBuilder at line 79
FormBuilderInterface add(string|int|FormBuilderInterface $child, string|null $type = null, array $options = array())

Unsupported method.

This method should not be invoked.

Parameters

string|int|FormBuilderInterface $child
string|null $type
array $options

Return Value

FormBuilderInterface

Exceptions

BadMethodCallException

in ButtonBuilder at line 95
FormBuilderInterface create(string $name, string|null $type = null, array $options = array())

Unsupported method.

This method should not be invoked.

Parameters

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

Return Value

FormBuilderInterface

Exceptions

BadMethodCallException

in ButtonBuilder at line 109
FormBuilderInterface get(string $name)

Unsupported method.

This method should not be invoked.

Parameters

string $name The name of the child

Return Value

FormBuilderInterface

Exceptions

BadMethodCallException

in ButtonBuilder at line 123
FormBuilderInterface remove(string $name)

Unsupported method.

This method should not be invoked.

Parameters

string $name

Return Value

FormBuilderInterface

Exceptions

BadMethodCallException

in ButtonBuilder at line 135
bool has(string $name)

Unsupported method.

Parameters

string $name

Return Value

bool

in ButtonBuilder at line 145
array all()

Returns the children.

Return Value

array

at line 26
FormInterface getForm()

Creates the button.

Return Value

FormInterface The form

in ButtonBuilder at line 171
$this addEventListener(string $eventName, callable $listener, int $priority = 0)

Unsupported method.

This method should not be invoked.

Parameters

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.

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 183
$this addEventSubscriber(EventSubscriberInterface $subscriber)

Unsupported method.

This method should not be invoked.

Parameters

EventSubscriberInterface $subscriber

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 198
$this addViewTransformer(DataTransformerInterface $viewTransformer, bool $forcePrepend = false)

Unsupported method.

This method should not be invoked.

Parameters

DataTransformerInterface $viewTransformer
bool $forcePrepend If set to true, prepend instead of appending

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 210
$this resetViewTransformers()

Unsupported method.

This method should not be invoked.

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 225
$this addModelTransformer(DataTransformerInterface $modelTransformer, bool $forceAppend = false)

Unsupported method.

This method should not be invoked.

Parameters

DataTransformerInterface $modelTransformer
bool $forceAppend If set to true, append instead of prepending

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 237
$this resetModelTransformers()

Unsupported method.

This method should not be invoked.

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 245
$this setAttribute(string $name, mixed $value)

Sets the value for an attribute.

Parameters

string $name The name of the attribute
mixed $value The value of the attribute

Return Value

$this The configuration object

in ButtonBuilder at line 255
$this setAttributes(array $attributes)

Sets the attributes.

Parameters

array $attributes

Return Value

$this The configuration object

in ButtonBuilder at line 269
$this setDataMapper(DataMapperInterface $dataMapper = null)

Unsupported method.

This method should not be invoked.

Parameters

DataMapperInterface $dataMapper

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 281
$this setDisabled(bool $disabled)

Set whether the button is disabled.

Parameters

bool $disabled Whether the form is disabled

Return Value

$this The configuration object

in ButtonBuilder at line 297
$this setEmptyData(mixed $emptyData)

Unsupported method.

This method should not be invoked.

Parameters

mixed $emptyData The empty data

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 311
$this setErrorBubbling(bool $errorBubbling)

Unsupported method.

This method should not be invoked.

Parameters

bool $errorBubbling

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 325
$this setRequired(bool $required)

Unsupported method.

This method should not be invoked.

Parameters

bool $required

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 339
$this setPropertyPath(string|PropertyPathInterface|null $propertyPath)

Unsupported method.

This method should not be invoked.

Parameters

string|PropertyPathInterface|null $propertyPath The property path or null if the path should be set automatically based on the form's name

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 353
$this setMapped(bool $mapped)

Unsupported method.

This method should not be invoked.

Parameters

bool $mapped Whether the form should be mapped

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 367
$this setByReference(bool $byReference)

Unsupported method.

This method should not be invoked.

Parameters

bool $byReference Whether the data should be modified by reference

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 381
$this setCompound(bool $compound)

Unsupported method.

This method should not be invoked.

Parameters

bool $compound Whether the form should be compound

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 391
$this setType(ResolvedFormTypeInterface $type)

Sets the type of the button.

Parameters

ResolvedFormTypeInterface $type

Return Value

$this The configuration object

in ButtonBuilder at line 407
$this setData(mixed $data)

Unsupported method.

This method should not be invoked.

Parameters

mixed $data The data of the form in application format

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 421
$this setDataLocked(bool $locked)

Unsupported method.

This method should not be invoked.

Parameters

bool $locked Whether to lock the default data

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 433
setFormFactory(FormFactoryInterface $formFactory)

Unsupported method.

This method should not be invoked.

Parameters

FormFactoryInterface $formFactory

Exceptions

BadMethodCallException

in ButtonBuilder at line 445
$this setAction(string $action)

Unsupported method.

Parameters

string $action The target URL of the form

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 457
$this setMethod(string $method)

Unsupported method.

Parameters

string $method The HTTP method of the form

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 467
$this setRequestHandler(RequestHandlerInterface $requestHandler)

Unsupported method.

Parameters

RequestHandlerInterface $requestHandler

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 481
$this setAutoInitialize(bool $initialize)

Unsupported method.

Parameters

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.

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 497
$this setInheritData(bool $inheritData)

Unsupported method.

Parameters

bool $inheritData Whether the form should inherit its parent's data

Return Value

$this The configuration object

Exceptions

BadMethodCallException

in ButtonBuilder at line 507
FormConfigInterface getFormConfig()

Builds and returns the button configuration.

Return Value

FormConfigInterface

in ButtonBuilder at line 519
EventDispatcherInterface getEventDispatcher()

Unsupported method.

Return Value

EventDispatcherInterface The dispatcher

in ButtonBuilder at line 526
string getName()

Returns the name of the form used as HTTP parameter.

Return Value

string The form name

in ButtonBuilder at line 534
PropertyPathInterface|null getPropertyPath()

Unsupported method.

Return Value

PropertyPathInterface|null The property path

in ButtonBuilder at line 543
bool getMapped()

Unsupported method.

Return Value

bool Whether the form is mapped

in ButtonBuilder at line 553
bool getByReference()

Unsupported method.

Return Value

bool Whether to modify the form's data by reference

in ButtonBuilder at line 563
bool getCompound()

Unsupported method.

Return Value

bool Whether the form is compound

in ButtonBuilder at line 573
ResolvedFormTypeInterface getType()

Returns the form type used to construct the button.

Return Value

ResolvedFormTypeInterface The form's type

in ButtonBuilder at line 583
DataTransformerInterface[] getViewTransformers()

Unsupported method.

Return Value

DataTransformerInterface[] An array of {@link DataTransformerInterface} instances

in ButtonBuilder at line 593
DataTransformerInterface[] getModelTransformers()

Unsupported method.

Return Value

DataTransformerInterface[] An array of {@link DataTransformerInterface} instances

in ButtonBuilder at line 601
DataMapperInterface|null getDataMapper()

Unsupported method.

Return Value

DataMapperInterface|null The data mapper

in ButtonBuilder at line 610
bool getRequired()

Unsupported method.

Return Value

bool Whether the form is required

in ButtonBuilder at line 620
bool getDisabled()

Returns whether the button is disabled.

Return Value

bool Whether the form is disabled

in ButtonBuilder at line 630
bool getErrorBubbling()

Unsupported method.

Return Value

bool Whether errors will bubble up

in ButtonBuilder at line 638
mixed getEmptyData()

Unsupported method.

Return Value

mixed The data returned if the form is empty

in ButtonBuilder at line 647
array getAttributes()

Returns additional attributes of the button.

Return Value

array An array of key-value combinations

in ButtonBuilder at line 659
bool hasAttribute(string $name)

Returns whether the attribute with the given name exists.

Parameters

string $name The attribute name

Return Value

bool Whether the attribute exists

in ButtonBuilder at line 672
mixed getAttribute(string $name, mixed $default = null)

Returns the value of the given attribute.

Parameters

string $name The attribute name
mixed $default The value returned if the attribute does not exist

Return Value

mixed The attribute value

in ButtonBuilder at line 680
mixed getData()

Unsupported method.

Return Value

mixed The initial form data

in ButtonBuilder at line 687
string|null getDataClass()

Unsupported method.

Return Value

string|null The data class or null

in ButtonBuilder at line 696
bool getDataLocked()

Unsupported method.

Return Value

bool Whether the data is locked

in ButtonBuilder at line 704
FormFactoryInterface getFormFactory()

Unsupported method.

Return Value

FormFactoryInterface The form factory

in ButtonBuilder at line 711
string getAction()

Unsupported method.

Return Value

string The target URL of the form

in ButtonBuilder at line 718
string getMethod()

Unsupported method.

Return Value

string The HTTP method of the form

in ButtonBuilder at line 725
RequestHandlerInterface getRequestHandler()

Unsupported method.

Return Value

RequestHandlerInterface The request handler

in ButtonBuilder at line 734
bool getAutoInitialize()

Unsupported method.

Return Value

bool returns true if the form should be initialized when created, false otherwise

in ButtonBuilder at line 744
bool getInheritData()

Unsupported method.

Return Value

bool Whether the form should inherit its parent's data

in ButtonBuilder at line 754
array getOptions()

Returns all options passed during the construction of the button.

Return Value

array The passed options

in ButtonBuilder at line 766
bool hasOption(string $name)

Returns whether a specific option exists.

Parameters

string $name The option name,

Return Value

bool Whether the option exists

in ButtonBuilder at line 779
mixed getOption(string $name, mixed $default = null)

Returns the value of a specific option.

Parameters

string $name The option name
mixed $default The value returned if the option does not exist

Return Value

mixed The option value

in ButtonBuilder at line 789
int count()

Unsupported method.

Return Value

int Always returns 0

in ButtonBuilder at line 799
EmptyIterator getIterator()

Unsupported method.

Return Value

EmptyIterator Always returns an empty iterator