You are here

public static function EntityUsageSourceLevelInterface::isMiddleLevel in Entity Usage 8.3

Checks whether an entity is a middle-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 middle-level entity, FALSE otherwise.

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

File

src/EntityUsageSourceLevelInterface.php, line 32

Class

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

Namespace

Drupal\entity_usage

Code

public static function isMiddleLevel(EntityInterface $entity);