You are here

function monolog_help in Monolog 2.x

Implements hook_help().

File

./monolog.module, line 13
monolog.module.

Code

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

    // Main module help for the monolog module.
    case 'help.page.monolog':
      $readme = file_get_contents(__DIR__ . "/README.md");
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t("This module integrates Drupal with the fantastic Monolog library") . '</p>';
      $output .= '<pre>' . $readme . '</pre>';
      return $output;
  }
}