Copied!

BeforeCreateLocationEvent

BeforeCreateLocationEvent.php : 17
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeCreateLocationEvent.php : 28
public __construct(ContentInfo $contentInfo, LocationCreateStruct $locationCreateStruct)

Parameters

Name Type Default value Description
$contentInfo ContentInfo - -
$locationCreateStruct LocationCreateStruct - -

publicgetContentInfo()

BeforeCreateLocationEvent.php : 34
public getContentInfo() : ContentInfo

Return values

ContentInfo

publicgetLocation()

BeforeCreateLocationEvent.php : 44
public getLocation() : Location

Return values

Location

publicgetLocationCreateStruct()

BeforeCreateLocationEvent.php : 39
public getLocationCreateStruct() : LocationCreateStruct

Return values

LocationCreateStruct

publichasLocation()

BeforeCreateLocationEvent.php : 58
public hasLocation() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetLocation()

BeforeCreateLocationEvent.php : 53
public setLocation(Location|null $location) : void

Parameters

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