You are here

function pdf_generator_help in PDF Generator 8

Same name and namespace in other branches
  1. 2.0.x pdf_generator.module \pdf_generator_help()

Implements hook_help().

File

./pdf_generator.module, line 36
The base module file for pdf_generator.

Code

function pdf_generator_help($route_name, RouteMatchInterface $arg) {
  switch ($route_name) {
    case 'help.page.pdf_generator':
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('This module intend to generate a simple way to generate PDF Files.') . '</p>';

      // Add a link to the Drupal.org project.
      $output .= '<p>';
      $output .= t('Visit the <a href=":project_link">PDF Generator project pages</a> on Drupal.org for more information.', [
        ':project_link' => 'https://www.drupal.org/project/pdf_generator',
      ]);
      $output .= '</p>';
      return $output;
  }
}