You are here

public function EntityBase::referencedEntities in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Entity/EntityBase.php \Drupal\Core\Entity\EntityBase::referencedEntities()

Gets a list of entities referenced by this entity.

Return value

\Drupal\Core\Entity\EntityInterface[] An array of entities.

Overrides EntityInterface::referencedEntities

1 method overrides EntityBase::referencedEntities()
ContentEntityBase::referencedEntities in core/lib/Drupal/Core/Entity/ContentEntityBase.php
Gets a list of entities referenced by this entity.

File

core/lib/Drupal/Core/Entity/EntityBase.php, line 429

Class

EntityBase
Defines a base entity class.

Namespace

Drupal\Core\Entity

Code

public function referencedEntities() {
  return [];
}