function FieldItemInterface::propertyDefinitions
Same name in other branches
- 9 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()
- 11.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
29 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.
- DeprecatedReferenceItem::propertyDefinitions in core/
modules/ jsonapi/ tests/ modules/ jsonapi_test_reference_types/ src/ Plugin/ Field/ FieldType/ DeprecatedReferenceItem.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.