function FieldItemInterface::propertyDefinitions
Same name and namespace in other branches
- 11.x core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::propertyDefinitions()
- 10 core/lib/Drupal/Core/Field/FieldItemInterface.php \Drupal\Core\Field\FieldItemInterface::propertyDefinitions()
- 8.9.x 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
4 methods override FieldItemInterface::propertyDefinitions()
- LayoutSectionItem::propertyDefinitions in core/
modules/ layout_builder/ src/ Plugin/ Field/ FieldType/ LayoutSectionItem.php - Defines field item properties.
- TelephoneItem::propertyDefinitions in core/
modules/ telephone/ src/ Plugin/ Field/ FieldType/ TelephoneItem.php - Defines field item properties.
- TestItem::propertyDefinitions in core/
modules/ field/ tests/ modules/ field_test/ src/ Plugin/ Field/ FieldType/ TestItem.php - Defines field item properties.
- TestObjectItem::propertyDefinitions in core/
modules/ field/ tests/ modules/ field_test/ src/ Plugin/ Field/ FieldType/ TestObjectItem.php - Defines field item properties.
File
-
core/
lib/ Drupal/ Core/ Field/ FieldItemInterface.php, line 35
Class
- FieldItemInterface
- Interface for entity field items.
Namespace
Drupal\Core\FieldCode
public static function propertyDefinitions(FieldStorageDefinitionInterface $field_definition);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.