Copied!

FieldDefinitionCreateStruct

FieldDefinitionCreateStruct.php : 16
Extends ValueObject

this class is used to create a field definition.

Properties

public $defaultValue

FieldDefinitionCreateStruct.php : 96

Default value of the field.

public mixed $defaultValue = null

public $descriptions

FieldDefinitionCreateStruct.php : 46

An array of descriptions with languageCode keys.

public array<string, string> $descriptions = []

an array of string

public $fieldGroup

FieldDefinitionCreateStruct.php : 51

Field group name.

public string|null $fieldGroup = null

public $fieldSettings

FieldDefinitionCreateStruct.php : 91

The settings supported by the field type.

public array<string, mixed>|null $fieldSettings = null

public $fieldTypeIdentifier

FieldDefinitionCreateStruct.php : 23

String identifier of the field type.

public string|null $fieldTypeIdentifier = null

Required.

public $identifier

FieldDefinitionCreateStruct.php : 32

Readable string identifier of a field definition.

public string|null $identifier = null

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

Required.

public $isInfoCollector

FieldDefinitionCreateStruct.php : 77

Indicates if this attribute is used for information collection.

public bool $isInfoCollector = false

public $isRequired

FieldDefinitionCreateStruct.php : 67

Indicates if the field is required.

public bool $isRequired = false

public $isSearchable

FieldDefinitionCreateStruct.php : 101

Indicates if th the content is searchable by this attribute.

public bool|null $isSearchable = null

public $isThumbnail

FieldDefinitionCreateStruct.php : 72

Indicates if the field can be a thumbnail.

public bool $isThumbnail = false

public $isTranslatable

FieldDefinitionCreateStruct.php : 62

Indicates if the field is translatable.

public bool $isTranslatable = false

public $names

FieldDefinitionCreateStruct.php : 39

An array of names with languageCode keys.

public array<string, string> $names = []

an array of string

public $position

FieldDefinitionCreateStruct.php : 57

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

public int|null $position = null

public $validatorConfiguration

FieldDefinitionCreateStruct.php : 84

The validator configuration supported by the field type.

public array<string, mixed>|null $validatorConfiguration = null

Methods

public__construct()

ValueObject.php : 32

Construct object optionally with a set of properties.

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

protectedgetProperties()

ValueObject.php : 53

Returns list of available properties' names.

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

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]