You are here

wkhtmltopdf.module in wkhtmltopdf 2.0.x

Same filename and directory in other branches
  1. 8 wkhtmltopdf.module

Drupal module.

File

wkhtmltopdf.module
View source
<?php

/**
 * @file
 * Drupal module.
 */
use Drupal\Core\Routing\RouteMatchInterface;
use Drupal\Core\Url;

/**
 * Implements hook_help().
 */
function wkhtmltopdf_help($route_name, RouteMatchInterface $route_match) {
  switch ($route_name) {
    case 'help.page.wkhtmltopdf':
      $variables = [
        ':settings' => Url::fromRoute('wkhtmltodpf.settings')
          ->toString(),
      ];
      $output = '';
      $output .= '<h3>' . t('About') . '</h3>';
      $output .= '<p>' . t('The wkhtmltopdf module integrates the binary set in <a href=":settings">Settings</a> and provides a link to print a page to pdf file.', $variables) . '</p>';
      return $output;
  }
}

Functions

Namesort descending Description
wkhtmltopdf_help Implements hook_help().