Commit ae14429a authored by Alberto Paderno's avatar Alberto Paderno Committed by Milan Golubovic
Browse files

Issue #3062638 by alonaoneill, apaderno, Willtg, krina.addweb, fago: Add hook_help()

parent 88049470
Loading
Loading
Loading
Loading

request_info.module

0 → 100644
+27 −0
Original line number Diff line number Diff line
<?php

/**
 * @file
 * Hook implementations for the Request Info module.
 */

use Drupal\Core\Routing\RouteMatchInterface;

/**
 * Implements hook_help().
 */
function request_info_help($route_name, RouteMatchInterface $arg) {
  switch ($route_name) {
    case 'help.page.request_info':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('This is a tiny helper module to add request information to the status report. This is helpful to verify Drupal is correctly configured, for example trusted reverse proxy addresses are added or HTTP headers are followed.') . '</p>';
      $output .= '<p>';
      $output .= t('Visit the <a href=":project_link">Request Info</a> project page for more information.', [
        ':project_link' => 'https://www.drupal.org/project/request_info',
      ]);
      $output .= '</p>';

      return $output;
  }
}