Copied!

FieldDefinitionCreateStruct

FieldDefinitionCreateStruct.php : 16
Extends ValueObject

this class is used to create a field definition.

Properties

public $defaultValue

FieldDefinitionCreateStruct.php : 114

Default value of the field.

public mixed $defaultValue

public $descriptions

FieldDefinitionCreateStruct.php : 50

An array of descriptions with languageCode keys.

public array<string|int, mixed> $descriptions

an array of string

public $fieldGroup

FieldDefinitionCreateStruct.php : 57

Field group name.

public string $fieldGroup

public $fieldSettings

FieldDefinitionCreateStruct.php : 107

The settings supported by the field type.

public mixed $fieldSettings

public $fieldTypeIdentifier

FieldDefinitionCreateStruct.php : 25

String identifier of the field type.

public string $fieldTypeIdentifier

Required.

public $identifier

FieldDefinitionCreateStruct.php : 36

Readable string identifier of a field definition.

public string $identifier

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

Required.

public $isInfoCollector

FieldDefinitionCreateStruct.php : 93

Indicates if this attribute is used for information collection.

public bool $isInfoCollector

public $isRequired

FieldDefinitionCreateStruct.php : 79

Indicates if the field is required.

public bool $isRequired

public $isSearchable

FieldDefinitionCreateStruct.php : 121

Indicates if th the content is searchable by this attribute.

public bool $isSearchable

public $isThumbnail

FieldDefinitionCreateStruct.php : 86

Indicates if the field can be a thumbnail.

public bool $isThumbnail

public $isTranslatable

FieldDefinitionCreateStruct.php : 72

Indicates if the field is translatable.

public bool $isTranslatable

public $names

FieldDefinitionCreateStruct.php : 43

An array of names with languageCode keys.

public array<string|int, mixed> $names

an array of string

public $position

FieldDefinitionCreateStruct.php : 65

The position of the field definition in the content type if not set the field is added at the end.

public int $position

public $validatorConfiguration

FieldDefinitionCreateStruct.php : 100

The validator configuration supported by the field type.

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>