You are here

protected function Tracker::untrackEntityTypeIds in Menu Entity Index 8

Deletes all tracked records for target entity types.

Parameters

array $entity_type_ids: Target entity type ids to delete records for.

1 call to Tracker::untrackEntityTypeIds()
Tracker::setTrackedEntityTypes in src/Tracker.php
Sets entity types to track and updates database table accordingly.

File

src/Tracker.php, line 367

Class

Tracker
Tracks menu links and their referenced entities.

Namespace

Drupal\menu_entity_index

Code

protected function untrackEntityTypeIds(array $entity_type_ids = []) {
  if (empty($entity_type_ids)) {
    return;
  }
  $this->database
    ->delete('menu_entity_index')
    ->condition('target_type', (array) $entity_type_ids, 'IN')
    ->execute();
}