Copied!

BeforeUpdatePriceEvent

BeforeUpdatePriceEvent.php : 16
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeUpdatePriceEvent.php : 22
public __construct(ProductPriceUpdateStructInterface $updateStruct)

Parameters

Name Type Default value Description
$updateStruct ProductPriceUpdateStructInterface - -

publicgetResultPrice()

BeforeUpdatePriceEvent.php : 32
public getResultPrice() : PriceInterface

Return values

PriceInterface

publicgetUpdateStruct()

BeforeUpdatePriceEvent.php : 27
public getUpdateStruct() : ProductPriceUpdateStructInterface

Return values

ProductPriceUpdateStructInterface

publichasResultPrice()

BeforeUpdatePriceEvent.php : 44
public hasResultPrice() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetResultPrice()

BeforeUpdatePriceEvent.php : 49
public setResultPrice(PriceInterface|null $resultPrice) : void

Parameters

Name Type Default value Description
$resultPrice PriceInterface|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().