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

protected $alwaysAvailable

URLAlias.php : 66

Fallback indicator for other languages.

protected bool $alwaysAvailable = false

protected $destination

URLAlias.php : 49

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

protected string|int $destination

protected $forward

URLAlias.php : 81

Indicates if the url should be redirected.

protected bool $forward = false

protected $id

URLAlias.php : 38

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 : 76

If false this alias was autogenerated otherwise manually created.

protected bool $isCustom = false

protected $isHistory

URLAlias.php : 71

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

protected bool $isHistory = false

protected $languageCodes

URLAlias.php : 61

The languageCodes for which this path is valid.

protected array<string|int, string> $languageCodes = []

protected $path

URLAlias.php : 54

the full path of the alias.

protected string $path

protected $type

URLAlias.php : 43

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

protected int $type

Methods

public__construct()

ValueObject.php : 32

Construct object optionally with a set of properties.

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

Readonly properties values must be set using $properties as they aren't writable anymore after object has been created.

Parameters

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

protectedgetProperties()

ValueObject.php : 53

Returns list of available properties' names.

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

Override to add dynamic properties.

Parameters

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

Additional dynamic properties exposed on the object

Return values

array<int, string>

Attributes
#[Ignore]