dblog_menu_links_discovered_alter

dblog_menu_links_discovered_alter(&$links)

Implements hook_menu_links_discovered_alter().

File

core/modules/dblog/dblog.module, line 42
System monitoring and logging for administrators.

Code

function dblog_menu_links_discovered_alter(&$links) {
  if (\Drupal::moduleHandler()->moduleExists('search')) {
    $links['dblog.search'] = array(
      'title' => new TranslatableMarkup('Top search phrases'),
      'route_name' => 'dblog.search',
      'description' => new TranslatableMarkup('View most popular search phrases.'),
      'parent' => 'system.admin_reports',
    );
  }

  return $links;
}
doc_Drupal
2016-10-29 09:01:19
Comments
Leave a Comment

Please login to continue.