You are here

function admin_toolbar_tools_help in Admin Toolbar 8

Same name and namespace in other branches
  1. 8.2 admin_toolbar_tools/admin_toolbar_tools.module \admin_toolbar_tools_help()
  2. 3.x admin_toolbar_tools/admin_toolbar_tools.module \admin_toolbar_tools_help()

Implements hook_help().

File

admin_toolbar_tools/admin_toolbar_tools.module, line 33
Provides extra menu links for the core drupal toolbar.

Code

function admin_toolbar_tools_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.admin_toolbar_tools':
      $output = '';
      $output .= '<p>';
      $output .= t('The Admin Toolbar Extra Tools module comes packaged with the <a href=":admin-toolbar">Admin Toolbar</a> module and adds functionality to it. The additional functionality is accessed thru extra links on the main administration Toolbar. Some links to Admin Toolbar Extra Tools administration pages are located at the bottom of this page.</a>', [
        ':admin-toolbar' => Url::fromRoute('help.page', [
          'name' => 'admin_toolbar',
        ])
          ->toString(),
      ]);
      $output .= '</p>';
      $output .= '<h3>' . t('Uses') . '</h3>';
      $output .= '<p>' . t('To use Admin Toolbar Extra Tools just install it like any other module. There is no other configuration required.') . '</p>';
      return $output;
  }
}