FormActionEvent
FormActionEvent.php
:
15
Extends FormEvent
Methods¶
__construct()
¶
FormActionEvent.php
:
45
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$form | FormInterface | - | - |
$data | mixed | - | - |
$clickedButton | string|null | - | - |
$options | array<string, mixed> | [] | - |
$payloads | array<string|int, mixed> | [] | - |
getClickedButton()
¶
FormActionEvent.php
:
58
|
|
Return values
string|null
getOption()
¶
FormActionEvent.php
:
75
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$optionName | string | - |
The option name |
$defaultValue | mixed | null |
default value to return if option is not set |
getOptions()
¶
FormActionEvent.php
:
66
|
|
Return values
array<string, mixed>
getPayload()
¶
FormActionEvent.php
:
121
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$name | string | - | - |
getPayloads()
¶
FormActionEvent.php
:
103
|
|
Return values
array<string|int, mixed>
getResponse()
¶
FormActionEvent.php
:
85
|
|
Return values
Response|null
hasOption()
¶
FormActionEvent.php
:
80
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$optionName | string | - | - |
Return values
bool
hasPayload()
¶
FormActionEvent.php
:
116
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$name | string | - | - |
Return values
bool
hasResponse()
¶
FormActionEvent.php
:
95
|
|
Return values
bool
setPayload()
¶
FormActionEvent.php
:
126
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$name | string | - | - |
$payload | mixed | - | - |
setPayloads()
¶
FormActionEvent.php
:
111
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$payloads | array<string|int, mixed> | - | - |
setResponse()
¶
FormActionEvent.php
:
90
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$response | Response | - | - |