Copied!

BeforeCreateEvent

BeforeCreateEvent.php : 15
Final
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeCreateEvent.php : 25
public __construct(string $sourceUrl, string $destinationUrl, bool $forward)

Parameters

Name Type Default value Description
$sourceUrl string - -
$destinationUrl string - -
$forward bool - -

publicgetDestinationUrl()

BeforeCreateEvent.php : 37
public getDestinationUrl() : string

Return values

string

publicgetForward()

BeforeCreateEvent.php : 42
public getForward() : bool

Return values

bool

publicgetSourceUrl()

BeforeCreateEvent.php : 32
public getSourceUrl() : string

Return values

string

publicgetUrlWildcard()

BeforeCreateEvent.php : 47
public getUrlWildcard() : URLWildcard

Return values

URLWildcard

publichasUrlWildcard()

BeforeCreateEvent.php : 61
public hasUrlWildcard() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetUrlWildcard()

BeforeCreateEvent.php : 56
public setUrlWildcard(URLWildcard|null $urlWildcard) : void

Parameters

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