Copied!

BeforeCreateNotificationEvent

BeforeCreateNotificationEvent.php : 16
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeCreateNotificationEvent.php : 24
public __construct(CreateStruct $createStruct)

Parameters

Name Type Default value Description
$createStruct CreateStruct - -

publicgetCreateStruct()

BeforeCreateNotificationEvent.php : 29
public getCreateStruct() : CreateStruct

Return values

CreateStruct

publicgetNotification()

BeforeCreateNotificationEvent.php : 34
public getNotification() : Notification

Return values

Notification

publichasNotification()

BeforeCreateNotificationEvent.php : 48
public hasNotification() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetNotification()

BeforeCreateNotificationEvent.php : 43
public setNotification(Notification|null $notification) : void

Parameters

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