UrlAlias models one url alias path element separated by '/' in urls.
This class models the legacy structure used for url aliases.
Constants¶
                
LOCATION        ¶
    
        | 
                     | 
                
                    
                     | 
            
                
RESOURCE        ¶
    
        | 
                     | 
                
                    
                     | 
            
                
VIRTUAL        ¶
    
        | 
                     | 
                
                    
                     | 
            
Properties¶
                
        $alwaysAvailable
            ¶
    
        Fallback indicator for other languages.
| 
                     | 
                
                    
                     | 
            
                
        $destination
            ¶
    
        If type = URLAlias::LOCATION the locationId otherwise a string (e.g. /content/search).
| 
                     | 
                
                    
                     | 
            
                
        $forward
            ¶
    
        Indicates if the url should be redirected.
| 
                     | 
                
                    
                     | 
            
                
        $id
            ¶
    
        A unique identifier for the alias (in legacy implementation this would be <parentid>-<md5text>).
| 
                     | 
                
                    
                     | 
            
                
        $isCustom
            ¶
    
        If false this alias was autogenerated otherwise manuel created.
| 
                     | 
                
                    
                     | 
            
                
        $isHistory
            ¶
    
        Indicates that this alias was autogenerated for an in the meanwhile archived version of the content.
| 
                     | 
                
                    
                     | 
            
                
        $languageCodes
            ¶
    
        Language code of url alias entry.
| 
                     | 
                
                    
                     | 
            
                
        $pathData
            ¶
    
        Holds normalized path data.
| 
                     | 
                
                    
                     | 
            
Example:
array(
array(
"always-available" => true,
"translations" => array(
"cro-HR" => "jedan"
)
),
array(
"always-available" => false,
"translations" => array(
"cro-HR" => "dva",
"eng-GB" => "two",
)
)
)
                
        $type
            ¶
    
        The type of the URL Alias i.e. one of URLAlias::LOCATION, URLAlias::RESOURCE, URLAlias::VIRTUAL.
| 
                     | 
                
                    
                     | 
            
Methods¶
                
__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()
            ¶
    
        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>
Attributes
- #[Ignore]