Copied!

BeforeCreateCheckoutEvent

BeforeCreateCheckoutEvent.php : 16
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeCreateCheckoutEvent.php : 22
public __construct(CheckoutCreateStruct $createStruct[, CheckoutInterface|null $checkoutResult = null ])

Parameters

Name Type Default value Description
$createStruct CheckoutCreateStruct - -
$checkoutResult CheckoutInterface|null null -

publicgetCheckoutResult()

BeforeCreateCheckoutEvent.php : 33
public getCheckoutResult() : CheckoutInterface

Return values

CheckoutInterface

publicgetCreateStruct()

BeforeCreateCheckoutEvent.php : 28
public getCreateStruct() : CheckoutCreateStruct

Return values

CheckoutCreateStruct

publichasCheckoutResult()

BeforeCreateCheckoutEvent.php : 49
public hasCheckoutResult() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetCheckoutResult()

BeforeCreateCheckoutEvent.php : 44
public setCheckoutResult(CheckoutInterface|null $checkoutResult) : void

Parameters

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