Copied!

FieldDefinitionUpdateStruct

FieldDefinitionUpdateStruct.php : 16
Extends ValueObject

this class is used to update a field definition.

Properties

public $defaultValue

FieldDefinitionUpdateStruct.php : 102

If set the default value for this field is changed to the given value.

public mixed $defaultValue

public $descriptions

FieldDefinitionUpdateStruct.php : 39

If set this array of descriptions with languageCode keys replace the complete description collection.

public array<string|int, mixed> $descriptions

an array of string

public $fieldGroup

FieldDefinitionUpdateStruct.php : 46

If set the field group is changed to this name.

public string $fieldGroup

public $fieldSettings

FieldDefinitionUpdateStruct.php : 95

If set this settings supported by the field type replaces the existing ones.

public mixed $fieldSettings

public $identifier

FieldDefinitionUpdateStruct.php : 25

If set the identifier of a field definition is changed to this value.

public string $identifier

Needs to be unique within the context of the content type this is added to.

public $isInfoCollector

FieldDefinitionUpdateStruct.php : 81

If set the information collector flag is set to this value.

public bool $isInfoCollector

public $isRequired

FieldDefinitionUpdateStruct.php : 67

If set the required flag is set to this value.

public bool $isRequired

public $isSearchable

FieldDefinitionUpdateStruct.php : 109

If set the the searchable flag is set to this value.

public bool $isSearchable

public $isThumbnail

FieldDefinitionUpdateStruct.php : 74

Indicates if the field can be a thumbnail.

public bool $isThumbnail

public $isTranslatable

FieldDefinitionUpdateStruct.php : 60

If set translatable flag is set to this value.

public bool $isTranslatable

public $names

FieldDefinitionUpdateStruct.php : 32

If set this array of names with languageCode keys replace the complete name collection.

public array<string|int, mixed> $names

an array of string

public $position

FieldDefinitionUpdateStruct.php : 53

If set the position of the field in the content type.

public int $position

public $validatorConfiguration

FieldDefinitionUpdateStruct.php : 88

If set this validator configuration supported by the field type replaces the existing one.

public mixed $validatorConfiguration

Methods

public__construct()

ValueObject.php : 30

Construct object optionally with a set of properties.

public __construct([array<string|int, mixed> $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> [] -

protectedgetProperties()

ValueObject.php : 50

Function where list of properties are returned.

protected getProperties([array<string|int, mixed> $dynamicProperties = [] ]) : array<string|int, mixed>

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>