protected function Tracker::untrackMenus in Menu Entity Index 8
Deletes all tracked records for menus.
Parameters
array $menu_names: Menu names to delete records for.
2 calls to Tracker::untrackMenus()
- Tracker::setTrackAllMenus in src/
Tracker.php - Sets all menus option to track and update database table accordingly.
- Tracker::setTrackedMenus in src/
Tracker.php - Sets menus to track and updates database table accordingly.
File
- src/
Tracker.php, line 352
Class
- Tracker
- Tracks menu links and their referenced entities.
Namespace
Drupal\menu_entity_indexCode
protected function untrackMenus(array $menu_names = []) {
if (empty($menu_names)) {
return;
}
$this->database
->delete('menu_entity_index')
->condition('menu_name', (array) $menu_names, 'IN')
->execute();
}