Event emitted before action execution.
Methods¶
__construct()
¶
BeforeUpdateDiscountEvent.php
:
24
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$discount | DiscountInterface | - | - |
$updateStruct | DiscountUpdateStruct | - | - |
$discountResult | DiscountInterface|null | null | - |
getDiscount()
¶
BeforeUpdateDiscountEvent.php
:
34
|
|
Return values
getDiscountResult()
¶
BeforeUpdateDiscountEvent.php
:
44
|
|
Return values
getUpdateStruct()
¶
BeforeUpdateDiscountEvent.php
:
39
|
|
Return values
hasDiscountResult()
¶
BeforeUpdateDiscountEvent.php
:
62
|
|
Return values
bool
isPropagationStopped()
¶
Event.php
:
38
|
|
Return values
bool
setDiscountResult()
¶
BeforeUpdateDiscountEvent.php
:
57
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$discountResult | DiscountInterface|null | - | - |
stopPropagation()
¶
Event.php
:
50
Stops the propagation of the event to further event listeners.
|
|
If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().