Copied!

FieldDefinition

FieldDefinition.php : 33
Extends ValueObject

This class represents a field definition.

Properties

public $defaultValue read-only

FieldDefinition.php
public mixed $defaultValue

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getDefaultValue() instead.

public $fieldGroup read-only

FieldDefinition.php
public string $fieldGroup

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getFieldGroup() instead.

public $fieldSettings read-only

FieldDefinition.php
public array<string|int, mixed> $fieldSettings

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getFieldSettings() instead.

public $fieldTypeIdentifier read-only

FieldDefinition.php
public string $fieldTypeIdentifier

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getFieldTypeIdentifier() instead.

public $id read-only

FieldDefinition.php
public int $id

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getId() instead.

public $identifier read-only

FieldDefinition.php
public string $identifier

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getIdentifier() instead.

public $isInfoCollector read-only

FieldDefinition.php
public bool $isInfoCollector

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::$isInfoCollector() instead.

public $isRequired read-only

FieldDefinition.php
public bool $isRequired

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::$isRequired() instead.

public $isSearchable read-only

FieldDefinition.php
public bool $isSearchable

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getIdentifier() instead.

public $isThumbnail read-only

FieldDefinition.php
public bool $isThumbnail

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::isThumbnail() instead.

public $isTranslatable read-only

FieldDefinition.php
public bool $isTranslatable

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::$isTranslatable() instead.

public $mainLanguageCode read-only

FieldDefinition.php
public string $mainLanguageCode

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getMainLanguageCode() instead.

public $position read-only

FieldDefinition.php
public int $position

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getPosition() instead.

public $validatorConfiguration read-only

FieldDefinition.php
public array<string|int, mixed> $validatorConfiguration

@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getValidatorConfiguration() instead.

protected $defaultValue

FieldDefinition.php : 117

Default value of the field.

protected mixed $defaultValue

protected $fieldGroup

FieldDefinition.php : 54

Field group name.

protected string $fieldGroup

protected $fieldTypeIdentifier

FieldDefinition.php : 68

String identifier of the field type.

protected string $fieldTypeIdentifier

protected $id

FieldDefinition.php : 40

the unique id of this field definition.

protected int $id

protected $identifier

FieldDefinition.php : 47

Readable string identifier of a field definition.

protected string $identifier

protected $isInfoCollector

FieldDefinition.php : 96

the flag if this field is used for information collection.

protected bool $isInfoCollector

protected $isRequired

FieldDefinition.php : 89

Is the field required.

protected bool $isRequired

protected $isSearchable

FieldDefinition.php : 124

Indicates if th the content is searchable by this attribute.

protected bool $isSearchable

protected $isThumbnail

FieldDefinition.php : 82

Indicates if the field can be a thumbnail.

protected bool $isThumbnail

protected $isTranslatable

FieldDefinition.php : 75

If the field is translatable.

protected bool $isTranslatable

protected $mainLanguageCode

FieldDefinition.php : 131

Based on mainLanguageCode of contentType.

protected string $mainLanguageCode

protected $position

FieldDefinition.php : 61

the position of the field definition in the content type.

protected int $position

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> [] -

publicgetDefaultValue()

FieldDefinition.php : 166
public getDefaultValue() : mixed

publicgetFieldGroup()

FieldDefinition.php : 138
public getFieldGroup() : string

Return values

string

publicgetFieldSettings()

FieldDefinition.php : 110

This method returns settings for the field definition supported by the field type.

public abstract getFieldSettings() : array<string|int, mixed>

Return values

array<string|int, mixed>

publicgetFieldTypeIdentifier()

FieldDefinition.php : 191
public getFieldTypeIdentifier() : string

Return values

string

publicgetId()

FieldDefinition.php : 133
public getId() : int

Return values

int

publicgetIdentifier()

FieldDefinition.php : 186
public getIdentifier() : string

Return values

string

publicgetMainLanguageCode()

FieldDefinition.php : 176
public getMainLanguageCode() : string

Return values

string

publicgetPosition()

FieldDefinition.php : 143
public getPosition() : int

Return values

int

publicgetValidatorConfiguration()

FieldDefinition.php : 103

This method returns the validator configuration of this field definition supported by the field type.

public abstract getValidatorConfiguration() : array<string|int, mixed>

Return values

array<string|int, mixed>

publicisInfoCollector()

FieldDefinition.php : 158
public isInfoCollector() : bool

Return values

bool

publicisRequired()

FieldDefinition.php : 153
public isRequired() : bool

Return values

bool

publicisSearchable()

FieldDefinition.php : 171
public isSearchable() : bool

Return values

bool

publicisThumbnail()

FieldDefinition.php : 181
public isThumbnail() : bool

Return values

bool

publicisTranslatable()

FieldDefinition.php : 148
public isTranslatable() : bool

Return values

bool

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>