public function Tracker::getTrackedMenus in Menu Entity Index 8
Gets menus configured for tracking.
Return value
array Menu names to tack.
Overrides TrackerInterface::getTrackedMenus
4 calls to Tracker::getTrackedMenus()
- Tracker::deleteEntity in src/
Tracker.php - Deletes all database records for the given host entity.
- 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.
- Tracker::updateEntity in src/
Tracker.php - Updates database tracking for new or updated entities.
File
- src/
Tracker.php, line 211
Class
- Tracker
- Tracks menu links and their referenced entities.
Namespace
Drupal\menu_entity_indexCode
public function getTrackedMenus() {
if ($this->config
->get('all_menus')) {
return array_keys($this
->getAvailableMenus());
}
$menus = $this->config
->get('menus');
return array_values((array) $menus);
}