Class representing a relation between content.
Constants¶
                
ASSET        ¶
    
        the relation type ASSET is set for a relation to asset in an attribute value.
| 
                     | 
                
                    
                     | 
            
Tags
                
COMMON        ¶
    
        The relation type COMMON is a general relation between object set by a user.
| 
                     | 
                
                    
                     | 
            
Tags
                
EMBED        ¶
    
        the relation type EMBED is set for a relation which is anchored as embedded link in an attribute value.
| 
                     | 
                
                    
                     | 
            
Tags
                
FIELD        ¶
    
        the relation type FIELD is set for a relation which is part of an relation attribute value.
| 
                     | 
                
                    
                     | 
            
Tags
                
LINK        ¶
    
        the relation type LINK is set for a relation which is anchored as link in an attribute value.
| 
                     | 
                
                    
                     | 
            
Tags
Properties¶
                
        $destinationContentInfo
            ¶
    
        | 
                     | 
                
                    
                     | 
            
                
        $sourceContentInfo
            ¶
    
        | 
                     | 
                
                    
                     | 
            
                
        $id
            ¶
    
        ID of the relation.
| 
                     | 
                
                    
                     | 
            
                
        $sourceFieldDefinitionIdentifier
            ¶
    
        Source content type Field Definition identifier.
| 
                     | 
                
                    
                     | 
            
For relation not of type RelationType::COMMON this field denotes the field definition identifier of the attribute where the relation is anchored.
                
        $type
            ¶
    
        The relation type bitmask.
| 
                     | 
                
                    
                     | 
            
Tags
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> | [] | - | 
                
getDestinationContentInfo()
            ¶
    
        the content of the destination content of the relation.
| 
                     | 
                
                    
                     | 
            
Return values
                
getSourceContentInfo()
            ¶
    
        the content of the source content of the relation.
| 
                     | 
                
                    
                     | 
            
Return values
                
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]