EntityReferenceFieldItemListInterface.php

Same filename in other branches
  1. 9 core/lib/Drupal/Core/Field/EntityReferenceFieldItemListInterface.php
  2. 8.9.x core/lib/Drupal/Core/Field/EntityReferenceFieldItemListInterface.php
  3. 11.x core/lib/Drupal/Core/Field/EntityReferenceFieldItemListInterface.php

Namespace

Drupal\Core\Field

File

core/lib/Drupal/Core/Field/EntityReferenceFieldItemListInterface.php

View source
<?php

namespace Drupal\Core\Field;


/**
 * Interface for entity reference lists of field items.
 */
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();

}

Interfaces

Title Deprecated Summary
EntityReferenceFieldItemListInterface Interface for entity reference lists of field items.

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