You are here

public function EntityUsageInterface::listReferencedEntities in Entity Usage 8

Same name and namespace in other branches
  1. 8.4 src/EntityUsageInterface.php \Drupal\entity_usage\EntityUsageInterface::listReferencedEntities()
  2. 8.2 src/EntityUsageInterface.php \Drupal\entity_usage\EntityUsageInterface::listReferencedEntities()

Determines referenced entities.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity to check for references.

Return value

array A nested array with usage data. The first level is keyed by the type of the referencing entities, the second by the referencing objects id. The value of the second level contains the usage count.

1 method overrides EntityUsageInterface::listReferencedEntities()
EntityUsage::listReferencedEntities in src/EntityUsage.php
Determines referenced entities.

File

src/EntityUsageInterface.php, line 120

Class

EntityUsageInterface
Entity usage interface.

Namespace

Drupal\entity_usage

Code

public function listReferencedEntities(EntityInterface $entity);