Copied!

BeforeRemoveEntryEvent

BeforeRemoveEntryEvent.php : 16
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeRemoveEntryEvent.php : 24
public __construct(CartInterface $cart, EntryInterface $entry[, CartInterface|null $cartResult = null ])

Parameters

Name Type Default value Description
$cart CartInterface - -
$entry EntryInterface - -
$cartResult CartInterface|null null -

publicgetCart()

BeforeRemoveEntryEvent.php : 31
public getCart() : CartInterface

Return values

CartInterface

publicgetCartResult()

BeforeRemoveEntryEvent.php : 41
public getCartResult() : CartInterface

Return values

CartInterface

publicgetEntry()

BeforeRemoveEntryEvent.php : 36
public getEntry() : EntryInterface

Return values

EntryInterface

publichasCartResult()

BeforeRemoveEntryEvent.php : 57
public hasCartResult() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetCartResult()

BeforeRemoveEntryEvent.php : 52
public setCartResult(CartInterface|null $cartResult) : void

Parameters

Name Type Default value Description
$cartResult CartInterface|null - -

publicstopPropagation()

Event.php : 50

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().