Event emitted before action execution.
Methods¶
__construct() ¶
BeforeMergeCartsEvent.php
:
23
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$targetCart | CartInterface | - | - |
$deleteMergedCarts | bool | - | - |
$cartsToMerge | CartInterface | - | - |
getCartsToMerge() ¶
BeforeMergeCartsEvent.php
:
43
|
|
Return values
array<string|int, CartInterface>
getDeleteMergedCarts() ¶
BeforeMergeCartsEvent.php
:
53
|
|
Return values
bool
getTargetCart() ¶
BeforeMergeCartsEvent.php
:
30
|
|
Return values
isPropagationStopped() ¶
Event.php
:
38
|
|
Return values
bool
setDeleteMergedCarts() ¶
BeforeMergeCartsEvent.php
:
58
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$deleteMergedCarts | bool | - | - |
setsCartToMerge() ¶
BeforeMergeCartsEvent.php
:
48
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$cartsToMerge | CartInterface | - | - |
setTargetCart() ¶
BeforeMergeCartsEvent.php
:
35
|
|
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$targetCart | CartInterface | - | - |
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().