This class represents a field of a content object.
Properties¶
$fieldDefIdentifier
¶
Field.php
:
39
The field definition identifier.
|
|
$fieldTypeIdentifier
¶
Field.php
:
60
Field type identifier.
|
|
$id
¶
Field.php
:
32
The field id.
|
|
Value of null
indicates the field is virtual
and is not persisted (yet).
$languageCode
¶
Field.php
:
53
the language code.
|
|
$value
¶
Field.php
:
46
A field type value or a value type which can be converted by the corresponding field type.
|
|
Methods¶
__construct()
¶
ValueObject.php
:
31
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> | [] | - |
getFieldDefinitionIdentifier()
¶
Field.php
:
67
|
|
Return values
string
getFieldTypeIdentifier()
¶
Field.php
:
85
|
|
Return values
string
getId()
¶
Field.php
:
62
|
|
Return values
int|null
getLanguageCode()
¶
Field.php
:
80
|
|
Return values
string|null
getValue()
¶
Field.php
:
75
|
|
isVirtual()
¶
Field.php
:
93
|
|
Return values
bool
getProperties()
¶
ValueObject.php
:
54
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>