Copied!

BeforeCreateUrlAliasEvent

BeforeCreateUrlAliasEvent.php : 16
Final
Extends BeforeEvent

Event emitted before action execution.

Methods

public__construct()

BeforeCreateUrlAliasEvent.php : 30
public __construct(Location $location, string $path, string $languageCode, bool $forwarding, bool $alwaysAvailable)

Parameters

Name Type Default value Description
$location Location - -
$path string - -
$languageCode string - -
$forwarding bool - -
$alwaysAvailable bool - -

publicgetAlwaysAvailable()

BeforeCreateUrlAliasEvent.php : 59
public getAlwaysAvailable() : bool

Return values

bool

publicgetForwarding()

BeforeCreateUrlAliasEvent.php : 54
public getForwarding() : bool

Return values

bool

publicgetLanguageCode()

BeforeCreateUrlAliasEvent.php : 49
public getLanguageCode() : string

Return values

string

publicgetLocation()

BeforeCreateUrlAliasEvent.php : 39
public getLocation() : Location

Return values

Location

publicgetPath()

BeforeCreateUrlAliasEvent.php : 44
public getPath() : string

Return values

string

publicgetUrlAlias()

BeforeCreateUrlAliasEvent.php : 64
public getUrlAlias() : URLAlias

Return values

URLAlias

publichasUrlAlias()

BeforeCreateUrlAliasEvent.php : 78
public hasUrlAlias() : bool

Return values

bool

publicisPropagationStopped()

Event.php : 38
public isPropagationStopped() : bool

Return values

bool

publicsetUrlAlias()

BeforeCreateUrlAliasEvent.php : 73
public setUrlAlias(URLAlias|null $urlAlias) : void

Parameters

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