You are here

function jsonlog_help in JSONlog 3.x

Same name and namespace in other branches
  1. 8.2 jsonlog.module \jsonlog_help()
  2. 8 jsonlog.module \jsonlog_help()

Implements hook_help().

Parameters

string $route_name:

RouteMatchInterface $route_match:

File

./jsonlog.module, line 17
Contains jsonlog.module.

Code

function jsonlog_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {

    // Main module help for the jsonlog module.
    case 'help.page.jsonlog':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('Logs all events picked up by Drupal\'s LoggerInterface to a JSON-formatted file.', [], [
        'context' => 'module:jsonlog',
      ]) . '</p>';
      return $output;
    default:
  }
}