public function EntityUsageInterface::listTargets in Entity Usage 8.3
Same name and namespace in other branches
- 8.4 src/EntityUsageInterface.php \Drupal\entity_usage\EntityUsageInterface::listTargets()
- 8.2 src/EntityUsageInterface.php \Drupal\entity_usage\EntityUsageInterface::listTargets()
Provide a list of all referenced target entities for a source entity.
Parameters
\Drupal\Core\Entity\EntityInterface $source_entity: The source entity to check for references.
Return value
array An associative array where keys are target entity types, and values are indexed arrays of target entity IDs.
1 method overrides EntityUsageInterface::listTargets()
- EntityUsage::listTargets in src/
EntityUsage.php - Provide a list of all referenced target entities for a source entity.
File
- src/
EntityUsageInterface.php, line 151
Class
- EntityUsageInterface
- Entity usage interface.
Namespace
Drupal\entity_usageCode
public function listTargets(EntityInterface $source_entity);