You are here

function browscap_help in Browscap 8.3

Same name and namespace in other branches
  1. 8 browscap.module \browscap_help()
  2. 6.2 browscap.module \browscap_help()
  3. 6 browscap.module \browscap_help()
  4. 7.2 browscap.module \browscap_help()
  5. 7 browscap.module \browscap_help()

Implements hook_help().

File

./browscap.module, line 15
Replacement for PHP's get_browser() function.

Code

function browscap_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'browscap.admin':
      return '<p>' . t('Settings for user agent detection and the log that Browscap will keep about user agents that visit the site. See @admin_link for the actual information.)', [
        '@admin_link' => Drupal::l('user agent statistics', Url::fromRoute('browscap.admin')),
      ]) . '</p>';
  }
}