You are here

public function Tracker::isTrackedEntityType in Menu Entity Index 8

Checks, if an entity type is among the tracked entity types.

Parameters

\Drupal\Core\Entity\EntityTypeInterface $type: Entity type to check.

Return value

bool TRUE, if entity type is among tracked entity types. Otherwise FALSE.

Overrides TrackerInterface::isTrackedEntityType

File

src/Tracker.php, line 304

Class

Tracker
Tracks menu links and their referenced entities.

Namespace

Drupal\menu_entity_index

Code

public function isTrackedEntityType(EntityTypeInterface $type) {
  return $type instanceof ContentEntityType && in_array($type
    ->id(), $this
    ->getTrackedEntityTypes());
}