You are here

public function FieldItemList::getFieldDefinition in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/FieldItemList.php \Drupal\Core\Field\FieldItemList::getFieldDefinition()
  2. 10 core/lib/Drupal/Core/Field/FieldItemList.php \Drupal\Core\Field\FieldItemList::getFieldDefinition()

Gets the field definition.

Return value

\Drupal\Core\Field\FieldDefinitionInterface The field definition.

Overrides FieldItemListInterface::getFieldDefinition

3 calls to FieldItemList::getFieldDefinition()
FieldItemList::access in core/lib/Drupal/Core/Field/FieldItemList.php
Checks data value access.
FieldItemList::defaultValueWidget in core/lib/Drupal/Core/Field/FieldItemList.php
Returns the widget object used in default value form.
FieldItemList::generateSampleItems in core/lib/Drupal/Core/Field/FieldItemList.php
Populates a specified number of field items with valid sample data.

File

core/lib/Drupal/Core/Field/FieldItemList.php, line 70

Class

FieldItemList
Represents an entity field; that is, a list of field item objects.

Namespace

Drupal\Core\Field

Code

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