public function FieldItemBase::getFieldDefinition in Zircon Profile 8
Same name and namespace in other branches
- 8.0 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
2 calls to FieldItemBase::getFieldDefinition()
- EntityReferenceItem::getSettableOptions in core/
lib/ Drupal/ Core/ Field/ Plugin/ Field/ FieldType/ EntityReferenceItem.php - Returns an array of settable values with labels for display.
- FieldTestItem::postSave in core/
modules/ system/ tests/ modules/ entity_test/ src/ Plugin/ Field/ FieldType/ FieldTestItem.php - Defines custom post-save behavior for field values.
File
- core/
lib/ Drupal/ Core/ Field/ FieldItemBase.php, line 79 - Contains \Drupal\Core\Field\FieldItemBase.
Class
- FieldItemBase
- An entity field item.
Namespace
Drupal\Core\FieldCode
public function getFieldDefinition() {
return $this->definition
->getFieldDefinition();
}