Copied!

BeforeEmptyCartEvent

BeforeEmptyCartEvent.php : 14
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeEmptyCartEvent.php : 18
public __construct(CartInterface $cart)

Parameters

Name Type Default value Description
$cart CartInterface - -

publicgetCart()

BeforeEmptyCartEvent.php : 23
public getCart() : CartInterface

Return values

CartInterface

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

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