Copied!

CreateProductVariantsEvent

CreateProductVariantsEvent.php : 14
Extends AfterEvent

Event emitted after action execution.

Methods

public__construct()

CreateProductVariantsEvent.php : 24
public __construct(ProductInterface $product, iterable<string|int, ProductVariantCreateStruct$createStructs)

Parameters

Name Type Default value Description
$product ProductInterface - -
$createStructs iterable<string|int, ProductVariantCreateStruct> - -

publicgetCreateStructs()

CreateProductVariantsEvent.php : 38
public getCreateStructs() : iterable<string|int, ProductVariantCreateStruct>

Return values

iterable<string|int, ProductVariantCreateStruct>

publicgetProduct()

CreateProductVariantsEvent.php : 30
public getProduct() : ProductInterface

Return values

ProductInterface

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