You are here

public function FieldItemList::getFieldDefinition in Drupal 10

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

13 calls to FieldItemList::getFieldDefinition()
CommentFieldItemList::get in core/modules/comment/src/CommentFieldItemList.php
Returns the item at the specified position in this list.
DateRangeFieldItemList::defaultValuesForm in core/modules/datetime_range/src/Plugin/Field/FieldType/DateRangeFieldItemList.php
Returns a form for the default value input.
DateTimeFieldItemList::defaultValuesForm in core/modules/datetime/src/Plugin/Field/FieldType/DateTimeFieldItemList.php
Returns a form for the default value input.
EntityReferenceFieldItemList::referencedEntities in core/lib/Drupal/Core/Field/EntityReferenceFieldItemList.php
Gets the entities referenced by this field, preserving field item deltas.
FieldItemList::access in core/lib/Drupal/Core/Field/FieldItemList.php
Checks data value access.

... See full list

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