public function FieldItemBase::getFieldDefinition in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::getFieldDefinition()
- 9 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::getFieldDefinition()
Gets the field definition.
Return value
\Drupal\Core\Field\FieldDefinitionInterface The field definition.
Overrides FieldItemInterface::getFieldDefinition
20 calls to FieldItemBase::getFieldDefinition()
- ChangedItem::preSave in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ ChangedItem.php - Defines custom presave behavior for field values.
- EmailItem::getConstraints in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ EmailItem.php - Gets a list of validation constraints.
- EntityReferenceItem::getSettableOptions in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ EntityReferenceItem.php - Returns an array of settable values with labels for display.
- FieldItemBase::getSetting in core/
lib/ Drupal/ Core/ Field/ FieldItemBase.php - Returns the value of a field setting.
- FieldItemBase::getSettings in core/
lib/ Drupal/ Core/ Field/ FieldItemBase.php - Returns the array of field settings.
File
- core/
lib/ Drupal/ Core/ Field/ FieldItemBase.php, line 74
Class
- FieldItemBase
- An entity field item.
Namespace
Drupal\Core\FieldCode
public function getFieldDefinition() {
return $this->definition
->getFieldDefinition();
}