You are here

public static function EntityUsageSourceLevelInterface::isTopLevel in Entity Usage 8.3

Checks whether an entity is a top-level entity.

Parameters

\Drupal\Core\Entity\EntityInterface $entity: The entity object we are dealing with.

Return value

bool TRUE if the entity passed in is a top-level entity, FALSE otherwise.

1 method overrides EntityUsageSourceLevelInterface::isTopLevel()
EntityUsageSourceLevel::isTopLevel in src/EntityUsageSourceLevel.php
Checks whether an entity is a top-level entity.

File

src/EntityUsageSourceLevelInterface.php, line 21

Class

EntityUsageSourceLevelInterface
Defines the interface for the service managing top-level source entities.

Namespace

Drupal\entity_usage

Code

public static function isTopLevel(EntityInterface $entity);