function DblogHooks::menuLinksDiscoveredAlter
Implements hook_menu_links_discovered_alter().
File
-
core/
modules/ dblog/ src/ Hook/ DblogHooks.php, line 46
Class
- DblogHooks
- Hook implementations for dblog.
Namespace
Drupal\dblog\HookCode
public function menuLinksDiscoveredAlter(&$links) {
if (\Drupal::moduleHandler()->moduleExists('search')) {
$links['dblog.search'] = [
'title' => new TranslatableMarkup('Top search phrases'),
'route_name' => 'dblog.search',
'description' => new TranslatableMarkup('View most popular search phrases.'),
'parent' => 'system.admin_reports',
];
}
return $links;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.