public function EntityReferenceDependencyManager::getDependentEntityIds in Entity Reference Integrity 8
List the entity IDs that reference the given entity.
Parameters
\Drupal\Core\Entity\EntityInterface $entity: The entity.
Return value
array Array of entity type IDs with arrays of entity IDs.
Overrides EntityReferenceDependencyManagerInterface::getDependentEntityIds
File
- src/
EntityReferenceDependencyManager.php, line 41
Class
- EntityReferenceDependencyManager
- Calculate entity dependencies based on entity reference fields.
Namespace
Drupal\entity_reference_integrityCode
public function getDependentEntityIds(EntityInterface $entity) {
return $this->entityTypeManager
->getHandler($entity
->getEntityTypeId(), 'entity_reference_integrity')
->getDependentEntityIds($entity);
}