function FieldItemBase::getFieldDefinition

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

1 call to FieldItemBase::getFieldDefinition()
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 88

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.