Copied!

BeforeUpdateShoppingListEvent

BeforeUpdateShoppingListEvent.php : 16
Final
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeUpdateShoppingListEvent.php : 18
public __construct(ShoppingListInterface $shoppingList, ShoppingListUpdateStruct $updateStruct[, ShoppingListInterface|null $shoppingListResult = null ])

Parameters

Name Type Default value Description
$shoppingList ShoppingListInterface - -
$updateStruct ShoppingListUpdateStruct - -
$shoppingListResult ShoppingListInterface|null null -

publicgetShoppingList()

BeforeUpdateShoppingListEvent.php : 24
public getShoppingList() : ShoppingListInterface

Return values

ShoppingListInterface

publicgetShoppingListResult()

BeforeUpdateShoppingListEvent.php : 34
public getShoppingListResult() : ShoppingListInterface

Return values

ShoppingListInterface

publicgetUpdateStruct()

BeforeUpdateShoppingListEvent.php : 29
public getUpdateStruct() : ShoppingListUpdateStruct

Return values

ShoppingListUpdateStruct

publichasShoppingListResult()

BeforeUpdateShoppingListEvent.php : 50
public hasShoppingListResult() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 35
public isPropagationStopped() : bool

Return values

bool

publicsetShoppingListResult()

BeforeUpdateShoppingListEvent.php : 45
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().