Copied!

BeforeUpdateProductEvent

BeforeUpdateProductEvent.php : 16
Final
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeUpdateProductEvent.php : 22
public __construct(ProductUpdateStruct $updateStruct)

Parameters

Name Type Default value Description
$updateStruct ProductUpdateStruct - -

publicgetResultProduct()

BeforeUpdateProductEvent.php : 32
public getResultProduct() : ProductInterface

Return values

ProductInterface

publicgetUpdateStruct()

BeforeUpdateProductEvent.php : 27
public getUpdateStruct() : ProductUpdateStruct

Return values

ProductUpdateStruct

publichasResultProduct()

BeforeUpdateProductEvent.php : 44
public hasResultProduct() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetResultProduct()

BeforeUpdateProductEvent.php : 49
public setResultProduct(ProductInterface|null $resultProduct) : void

Parameters

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