You are here

public static function FieldItemInterface::propertyDefinitions in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::propertyDefinitions()
  2. 9 core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::propertyDefinitions()

Defines field item properties.

Properties that are required to constitute a valid, non-empty item should be denoted with \Drupal\Core\TypedData\DataDefinition::setRequired().

Return value

\Drupal\Core\TypedData\DataDefinitionInterface[] An array of property definitions of contained properties, keyed by property name.

See also

\Drupal\Core\Field\BaseFieldDefinition

28 methods override FieldItemInterface::propertyDefinitions()
BooleanItem::propertyDefinitions in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/BooleanItem.php
Defines field item properties.
CommentItem::propertyDefinitions in core/modules/comment/src/Plugin/Field/FieldType/CommentItem.php
Defines field item properties.
DateTimeItem::propertyDefinitions in core/modules/datetime/src/Plugin/Field/FieldType/DateTimeItem.php
Defines field item properties.
DecimalItem::propertyDefinitions in core/lib/Drupal/Core/Field/Plugin/Field/FieldType/DecimalItem.php
Defines field item properties.
DummyAjaxItem::propertyDefinitions in core/modules/image/tests/modules/image_module_test/src/Plugin/Field/FieldType/DummyAjaxItem.php
Defines field item properties.

... See full list

File

core/lib/Drupal/Core/Field/FieldItemInterface.php, line 35

Class

FieldItemInterface
Interface for entity field items.

Namespace

Drupal\Core\Field

Code

public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition);