This class represents a url alias in the repository.
Constants¶
                 LOCATION        ¶
LOCATION        ¶
    
        |  |  | 
                 RESOURCE        ¶
RESOURCE        ¶
    
        |  |  | 
                 VIRTUAL        ¶
VIRTUAL        ¶
    
        |  |  | 
Properties¶
                 $alwaysAvailable
            ¶
        $alwaysAvailable
            ¶
    
        Fallback indicator for other languages.
|  |  | 
                 $destination
            ¶
        $destination
            ¶
    
        If type = URLAlias::LOCATION it is a Location id otherwise a string (e.g. /content/search).
|  |  | 
                 $forward
            ¶
        $forward
            ¶
    
        Indicates if the url should be redirected.
|  |  | 
                 $id
            ¶
        $id
            ¶
    
        A unique identifier for the alias (in legacy implementation this would be <parentid>-<md5text>).
|  |  | 
Note: currently this will only be unique when $isHistory flag is false.
                 $isCustom
            ¶
        $isCustom
            ¶
    
        If false this alias was autogenerated otherwise manually created.
|  |  | 
                 $isHistory
            ¶
        $isHistory
            ¶
    
        Indicates that this alias was autogenerated for an in the meanwhile archived version of the content.
|  |  | 
                 $languageCodes
            ¶
        $languageCodes
            ¶
    
        The languageCodes for which this path is valid.
|  |  | 
                 $path
            ¶
        $path
            ¶
    
        the full path of the alias.
|  |  | 
                 $type
            ¶
        $type
            ¶
    
        The type of the URL Alias i.e. one of URLAlias::LOCATION, URLAlias::RESOURCE, URLAlias::VIRTUAL.
|  |  | 
Methods¶
                 __construct()
            ¶
__construct()
            ¶
    
        Construct object optionally with a set of 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> | [] | - | 
                 getProperties()
            ¶
getProperties()
            ¶
    
        Returns list of available properties' names.
|  |  | 
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>