You are here

public function EntityReferenceDependencyManagerInterface::hasDependents in Entity Reference Integrity 8

Check if an entity has dependent entties.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: An entity.

Return value

bool If the entity is referenced from elsewhere.

2 methods override EntityReferenceDependencyManagerInterface::hasDependents()
EntityReferenceDependencyManager::hasDependents in src/EntityReferenceDependencyManager.php
Check if an entity has dependent entties.
EntityReferenceIntegrityEntityHandler::hasDependents in src/EntityReferenceIntegrityEntityHandler.php
Check if an entity has dependent entties.

File

src/EntityReferenceDependencyManagerInterface.php, line 21

Class

EntityReferenceDependencyManagerInterface
An interface for calculating entity dependency.

Namespace

Drupal\entity_reference_integrity

Code

public function hasDependents(EntityInterface $entity);