Class representing a relation between content.
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 of {@see RelationType} values.
|
|
|
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]