You are here

public function Tracker::getTrackedEntityTypes in Menu Entity Index 8

Gets entity types configured for tracking.

Return value

array Entity Type Ids to tack.

Overrides TrackerInterface::getTrackedEntityTypes

3 calls to Tracker::getTrackedEntityTypes()
Tracker::getHostData in src/Tracker.php
Gets host information for a target entity.
Tracker::isTrackedEntityType in src/Tracker.php
Checks, if an entity type is among the tracked entity types.
Tracker::updateEntity in src/Tracker.php
Updates database tracking for new or updated entities.

File

src/Tracker.php, line 296

Class

Tracker
Tracks menu links and their referenced entities.

Namespace

Drupal\menu_entity_index

Code

public function getTrackedEntityTypes() {
  $entity_type_ids = $this->config
    ->get('entity_types');
  return array_values((array) $entity_type_ids);
}