You are here

public function FieldItemBase::getFieldDefinition in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::getFieldDefinition()
  2. 10 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 74

Class

FieldItemBase
An entity field item.

Namespace

Drupal\Core\Field

Code

public function getFieldDefinition() {
  return $this->definition
    ->getFieldDefinition();
}