You are here

interface EntityReferenceFieldItemListInterface in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Field/EntityReferenceFieldItemListInterface.php \Drupal\Core\Field\EntityReferenceFieldItemListInterface
  2. 9 core/lib/Drupal/Core/Field/EntityReferenceFieldItemListInterface.php \Drupal\Core\Field\EntityReferenceFieldItemListInterface

Interface for entity reference lists of field items.

Hierarchy

Expanded class hierarchy of EntityReferenceFieldItemListInterface

All classes that implement EntityReferenceFieldItemListInterface

5 files declare their use of EntityReferenceFieldItemListInterface
EntityReferenceFormatterBase.php in core/lib/Drupal/Core/Field/Plugin/Field/FieldFormatter/EntityReferenceFormatterBase.php
FileMediaFormatterBase.php in core/modules/file/src/Plugin/Field/FieldFormatter/FileMediaFormatterBase.php
ImageFormatterBase.php in core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatterBase.php
Relationship.php in core/modules/jsonapi/src/JsonApiResource/Relationship.php
ResourceIdentifier.php in core/modules/jsonapi/src/JsonApiResource/ResourceIdentifier.php

File

core/lib/Drupal/Core/Field/EntityReferenceFieldItemListInterface.php, line 8

Namespace

Drupal\Core\Field
View source
interface EntityReferenceFieldItemListInterface extends FieldItemListInterface {

  /**
   * Gets the entities referenced by this field, preserving field item deltas.
   *
   * @return \Drupal\Core\Entity\EntityInterface[]
   *   An array of entity objects keyed by field item deltas.
   */
  public function referencedEntities();

}

Members