Copied!

BeforeCreateOrderEvent

BeforeCreateOrderEvent.php : 16
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeCreateOrderEvent.php : 22
public __construct(OrderCreateStruct $createStruct[, OrderInterface|null $orderResult = null ])

Parameters

Name Type Default value Description
$createStruct OrderCreateStruct - -
$orderResult OrderInterface|null null -

publicgetCreateStruct()

BeforeCreateOrderEvent.php : 28
public getCreateStruct() : OrderCreateStruct

Return values

OrderCreateStruct

publicgetOrderResult()

BeforeCreateOrderEvent.php : 33
public getOrderResult() : OrderInterface

Return values

OrderInterface

publichasOrderResult()

BeforeCreateOrderEvent.php : 49
public hasOrderResult() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetOrderResult()

BeforeCreateOrderEvent.php : 44
public setOrderResult(OrderInterface|null $orderResult) : void

Parameters

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