function FieldItemBase::getFieldDefinition

Same name 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()
  3. 11.x core/lib/Drupal/Core/Field/FieldItemBase.php \Drupal\Core\Field\FieldItemBase::getFieldDefinition()

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.