Copied!

BeforeCreateSiteEvent

BeforeCreateSiteEvent.php : 16
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeCreateSiteEvent.php : 24
public __construct(SiteCreateStruct $siteCreateStruct)

Parameters

Name Type Default value Description
$siteCreateStruct SiteCreateStruct - -

publicgetSite()

BeforeCreateSiteEvent.php : 34
public getSite() : Site

Return values

Site

publicgetSiteCreateStruct()

BeforeCreateSiteEvent.php : 29
public getSiteCreateStruct() : SiteCreateStruct

Return values

SiteCreateStruct

publichasSite()

BeforeCreateSiteEvent.php : 48
public hasSite() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetSite()

BeforeCreateSiteEvent.php : 43
public setSite(Site|null $site) : void

Parameters

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