Copied!

BeforeCreateShoppingListEvent

BeforeCreateShoppingListEvent.php : 16
Final
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeCreateShoppingListEvent.php : 18
public __construct(ShoppingListCreateStruct $createStruct[, ShoppingListInterface|null $shoppingListResult = null ])

Parameters

Name Type Default value Description
$createStruct ShoppingListCreateStruct - -
$shoppingListResult ShoppingListInterface|null null -

publicgetCreateStruct()

BeforeCreateShoppingListEvent.php : 23
public getCreateStruct() : ShoppingListCreateStruct

Return values

ShoppingListCreateStruct

publicgetShoppingListResult()

BeforeCreateShoppingListEvent.php : 28
public getShoppingListResult() : ShoppingListInterface

Return values

ShoppingListInterface

publichasShoppingListResult()

BeforeCreateShoppingListEvent.php : 44
public hasShoppingListResult() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 35
public isPropagationStopped() : bool

Return values

bool

publicsetShoppingListResult()

BeforeCreateShoppingListEvent.php : 39
public setShoppingListResult(ShoppingListInterface|null $shoppingListResult) : void

Parameters

Name Type Default value Description
$shoppingListResult ShoppingListInterface|null - -

publicstopPropagation()

Event.php : 47

Stops the propagation of the event to further event listeners.

public stopPropagation() : void

If multiple event listeners are connected to the same event, no further event listener will be triggered once any trigger calls stopPropagation().