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