Copied!

DeleteBaseProductVariantsEvent

DeleteBaseProductVariantsEvent.php : 14
Extends AfterEvent

Event emitted after action execution.

Methods

public__construct()

DeleteBaseProductVariantsEvent.php : 24
public __construct(ProductInterface $baseProduct[, array<string|int, string> $deletedVariantCodes = [] ])

Parameters

Name Type Default value Description
$baseProduct ProductInterface - -
$deletedVariantCodes array<string|int, string> [] -

publicgetBaseProduct()

DeleteBaseProductVariantsEvent.php : 30
public getBaseProduct() : ProductInterface

Return values

ProductInterface

publicgetDeletedVariantCodes()

DeleteBaseProductVariantsEvent.php : 38
public getDeletedVariantCodes() : array<string|int, string>

Return values

array<string|int, string>

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetDeletedVariantCodes()

DeleteBaseProductVariantsEvent.php : 46
public setDeletedVariantCodes(array<string|int, string> $deletedVariantCodes) : void

Parameters

Name Type Default value Description
$deletedVariantCodes array<string|int, string> - -

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