interface EntityReferenceFieldItemListInterface

Same name and namespace in other branches
  1. 11.x core/lib/Drupal/Core/Field/EntityReferenceFieldItemListInterface.php \Drupal\Core\Field\EntityReferenceFieldItemListInterface
  2. 10 core/lib/Drupal/Core/Field/EntityReferenceFieldItemListInterface.php \Drupal\Core\Field\EntityReferenceFieldItemListInterface
  3. 8.9.x 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

8 files declare their use of EntityReferenceFieldItemListInterface
EntityReferenceFieldNormalizer.php in core/modules/jsonapi/src/Normalizer/EntityReferenceFieldNormalizer.php
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
HalEntityNormalizationTrait.php in core/modules/hal/tests/src/Functional/EntityResource/HalEntityNormalizationTrait.php
ImageFormatterBase.php in core/modules/image/src/Plugin/Field/FieldFormatter/ImageFormatterBase.php

... See full list

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

}

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