this class is used to update a field definition.
Properties¶
$defaultValue¶
If set the default value for this field is changed to the given value.
|
|
$descriptions¶
If set this array of descriptions with languageCode keys replace the complete description collection.
|
|
an array of string
$fieldGroup¶
If set the field group is changed to this name.
|
|
$fieldSettings¶
If set this settings supported by the field type replaces the existing ones.
|
|
$identifier¶
If set the identifier of a field definition is changed to this value.
|
|
Needs to be unique within the context of the content type this is added to.
$isInfoCollector¶
If set the information collector flag is set to this value.
|
|
$isRequired¶
If set the required flag is set to this value.
|
|
$isSearchable¶
If set the the searchable flag is set to this value.
|
|
$isThumbnail¶
Indicates if the field can be a thumbnail.
|
|
$isTranslatable¶
If set translatable flag is set to this value.
|
|
$names¶
If set this array of names with languageCode keys replace the complete name collection.
|
|
an array of string
$position¶
If set the position of the field in the content type.
|
|
$validatorConfiguration¶
If set this validator configuration supported by the field type replaces the existing one.
|
|
Methods¶
__construct() ¶
Construct object optionally with a set of properties.
|
|
Readonly properties values must be set using $properties as they are not writable anymore after object has been created.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$properties | array<string|int, mixed> | [] | - |
getProperties() ¶
Function where list of properties are returned.
|
|
Used by attributes(), override to add dynamic properties
Parameters
Name | Type | Default value | Description |
---|---|---|---|
$dynamicProperties | array<string|int, mixed> | [] |
Additional dynamic properties exposed on the object |
Return values
array<string|int, mixed>