Copied!

BeforeCreateProductEvent

BeforeCreateProductEvent.php : 16
Final
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeCreateProductEvent.php : 22
public __construct(ProductCreateStruct $createStruct)

Parameters

Name Type Default value Description
$createStruct ProductCreateStruct - -

publicgetCreateStruct()

BeforeCreateProductEvent.php : 27
public getCreateStruct() : ProductCreateStruct

Return values

ProductCreateStruct

publicgetResultProduct()

BeforeCreateProductEvent.php : 32
public getResultProduct() : ProductInterface

Return values

ProductInterface

publichasResultProduct()

BeforeCreateProductEvent.php : 44
public hasResultProduct() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetResultProduct()

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