public function EntityUsageInterface::listReferencedEntities in Entity Usage 8.2
Same name and namespace in other branches
- 8.4 src/EntityUsageInterface.php \Drupal\entity_usage\EntityUsageInterface::listReferencedEntities()
- 8 src/EntityUsageInterface.php \Drupal\entity_usage\EntityUsageInterface::listReferencedEntities()
Determines referenced entities (deprecated).
This method should not be used in new integrations, and is only provided as BC-layer for existing implementations. Note however that the count returned on 2.x will be different from the count returned on 1.x, once now we track all revisions / translations independently.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: A source entity.
Return value
array A nested array with usage data.The first level is keyed by the type of the target entity, the second by the referencing objects ID. The value of the second level contains the usage count, which will be summed for all revisions and translations tracked.
Deprecated
in branch 2.x. Use \Drupal\entity_usage\EntityUsageInterface::listTargets() instead.
1 method overrides EntityUsageInterface::listReferencedEntities()
- EntityUsage::listReferencedEntities in src/
EntityUsage.php - Determines referenced entities (deprecated).
File
- src/
EntityUsageInterface.php, line 219
Class
- EntityUsageInterface
- Entity usage interface.
Namespace
Drupal\entity_usageCode
public function listReferencedEntities(EntityInterface $entity);