public function EntityUsageInterface::listTargets in Entity Usage 8.2
Same name and namespace in other branches
- 8.4 src/EntityUsageInterface.php \Drupal\entity_usage\EntityUsageInterface::listTargets()
- 8.3 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.
int $vid: The revision id to return the references for. Defaults to all revisions.
Return value
array A nested array with usage data. The first level is keyed by the type of the target entities, the second by the target id. The value of the second level contains all other information like the method used by the source to reference the target, the field name and the target language code.
See also
\Drupal\entity_usage\EntityUsageInterface::listSources()
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 170
Class
- EntityUsageInterface
- Entity usage interface.
Namespace
Drupal\entity_usageCode
public function listTargets(EntityInterface $source_entity, $vid = NULL);