FieldDefinition
This class represents a field definition.
Properties¶
$defaultValue
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getDefaultValue() instead.
$defaultValue
¶
Default value of the field.
|
|
$fieldGroup
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getFieldGroup() instead.
$fieldGroup
¶
Field group name.
|
|
$fieldSettings
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getFieldSettings() instead.
$fieldTypeIdentifier
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getFieldTypeIdentifier() instead.
$fieldTypeIdentifier
¶
String identifier of the field type.
|
|
$id
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getId() instead.
$id
¶
the unique id of this field definition.
|
|
$identifier
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getIdentifier() instead.
$identifier
¶
Readable string identifier of a field definition.
|
|
$isInfoCollector
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::$isInfoCollector() instead.
$isInfoCollector
¶
the flag if this field is used for information collection.
|
|
$isRequired
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::$isRequired() instead.
$isRequired
¶
Is the field required.
|
|
$isSearchable
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getIdentifier() instead.
$isSearchable
¶
Indicates if th the content is searchable by this attribute.
|
|
$isThumbnail
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::isThumbnail() instead.
$isThumbnail
¶
Indicates if the field can be a thumbnail.
|
|
$isTranslatable
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::$isTranslatable() instead.
$isTranslatable
¶
If the field is translatable.
|
|
$mainLanguageCode
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getMainLanguageCode() instead.
$mainLanguageCode
¶
Based on mainLanguageCode of contentType.
|
|
$position
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getPosition() instead.
$position
¶
the position of the field definition in the content type.
|
|
$validatorConfiguration
¶
|
|
@deprecated 4.6.7 accessing magic getter is deprecated and will be removed in 5.0.0. Use FieldDefinition::getValidatorConfiguration() instead.
Methods¶
__construct()
¶
Construct object optionally with a set of 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> | [] | - |
getDefaultValue()
¶
|
|
getFieldGroup()
¶
|
|
Return values
string
getFieldSettings()
¶
This method returns settings for the field definition supported by the field type.
|
|
Return values
array<string|int, mixed>
getFieldTypeIdentifier()
¶
|
|
Return values
string
getId()
¶
|
|
Return values
int
getIdentifier()
¶
|
|
Return values
string
getMainLanguageCode()
¶
|
|
Return values
string
getPosition()
¶
|
|
Return values
int
getValidatorConfiguration()
¶
This method returns the validator configuration of this field definition supported by the field type.
|
|
Return values
array<string|int, mixed>
isInfoCollector()
¶
|
|
Return values
bool
isRequired()
¶
|
|
Return values
bool
isSearchable()
¶
|
|
Return values
bool
isThumbnail()
¶
|
|
Return values
bool
isTranslatable()
¶
|
|
Return values
bool
getProperties()
¶
Returns list of available properties' names.
|
|
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>