function EntityReferenceFieldItemListInterface::referencedEntities
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Field/EntityReferenceFieldItemListInterface.php \Drupal\Core\Field\EntityReferenceFieldItemListInterface::referencedEntities()
- 10 core/lib/Drupal/Core/Field/EntityReferenceFieldItemListInterface.php \Drupal\Core\Field\EntityReferenceFieldItemListInterface::referencedEntities()
- 11.x core/lib/Drupal/Core/Field/EntityReferenceFieldItemListInterface.php \Drupal\Core\Field\EntityReferenceFieldItemListInterface::referencedEntities()
Gets the entities referenced by this field, preserving field item deltas.
Return value
\Drupal\Core\Entity\EntityInterface[] An array of entity objects keyed by field item deltas.
1 method overrides EntityReferenceFieldItemListInterface::referencedEntities()
- EntityReferenceFieldItemList::referencedEntities in core/
lib/ Drupal/ Core/ Field/ EntityReferenceFieldItemList.php - Gets the entities referenced by this field, preserving field item deltas.
File
-
core/
lib/ Drupal/ Core/ Field/ EntityReferenceFieldItemListInterface.php, line 16
Class
- EntityReferenceFieldItemListInterface
- Interface for entity reference lists of field items.
Namespace
Drupal\Core\FieldCode
public function referencedEntities();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.