Copied!

URLAlias

URLAlias.php : 26
Extends ValueObject

This class represents a url alias in the repository.

Constants

publicLOCATION

URLAlias.php : 28
public mixed LOCATION = 0

publicRESOURCE

URLAlias.php : 29
public mixed RESOURCE = 1

publicVIRTUAL

URLAlias.php : 30
public mixed VIRTUAL = 2

Properties

public $alwaysAvailable read-only

URLAlias.php
public bool $alwaysAvailable

Fallback indicator for other languages

public $destination read-only

URLAlias.php
public mixed $destination

If type = URLAlias::LOCATION it is a Location id otherwise a string (e.g. /content/search)

public $forward read-only

URLAlias.php
public bool $forward

Indicates if the url should be redirected

public $id read-only

URLAlias.php
public string $id

A unique identifier for the alias

public $isCustom read-only

URLAlias.php
public bool $isCustom

If false this alias was autogenerated otherwise manuel created

public $isHistory read-only

URLAlias.php
public bool $isHistory

Indicates that this alias was autogenerated for an in the meanwhile archived version of the content

public $languageCodes read-only

URLAlias.php
public array<string|int, string> $languageCodes

the languages for which this alias is valid

public $path read-only

URLAlias.php
public string $path

the alias path

public $type read-only

URLAlias.php
public int $type

The type of the URL Alias i.e. one of URLAlias::LOCATION, URLAlias::RESOURCE, URLAlias::VIRTUAL

protected $alwaysAvailable

URLAlias.php : 76

Fallback indicator for other languages.

protected bool $alwaysAvailable

protected $destination

URLAlias.php : 55

If type = URLAlias::LOCATION it is a Location id otherwise a string (e.g. /content/search).

protected mixed $destination

protected $forward

URLAlias.php : 97

Indicates if the url should be redirected.

protected bool $forward

protected $id

URLAlias.php : 40

A unique identifier for the alias (in legacy implementation this would be <parentid>-<md5text>).

protected string $id

Note: currently this will only be unique when $isHistory flag is false.

protected $isCustom

URLAlias.php : 90

If false this alias was autogenerated otherwise manually created.

protected bool $isCustom

protected $isHistory

URLAlias.php : 83

Indicates that this alias was autogenerated for an in the meanwhile archived version of the content.

protected bool $isHistory

protected $languageCodes

URLAlias.php : 69

The languageCodes for which this path is valid.

protected array<string|int, string> $languageCodes

protected $path

URLAlias.php : 62

the full path of the alias.

protected string $path

protected $type

URLAlias.php : 47

The type of the URL Alias i.e. one of URLAlias::LOCATION, URLAlias::RESOURCE, URLAlias::VIRTUAL.

protected int $type

Methods

public__construct()

ValueObject.php : 30

Construct object optionally with a set of properties.

public __construct([array<string|int, mixed> $properties = [] ])

Readonly properties values must be set using $properties as they are not writable anymore after object has been created.

Parameters

Name Type Default value Description
$properties array<string|int, mixed> [] -

protectedgetProperties()

ValueObject.php : 50

Function where list of properties are returned.

protected getProperties([array<string|int, mixed> $dynamicProperties = [] ]) : array<string|int, mixed>

Used by attributes(), override to add dynamic properties

Parameters

Name Type Default value Description
$dynamicProperties array<string|int, mixed> []

Additional dynamic properties exposed on the object

Return values

array<string|int, mixed>