function wkhtmltopdf_help in wkhtmltopdf 8
Same name and namespace in other branches
- 2.0.x wkhtmltopdf.module \wkhtmltopdf_help()
Implements hook_help().
File
- ./
wkhtmltopdf.module, line 14 - Drupal module.
Code
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 integrate the binary setted in <a href=":settings">Settings</a> and provide a link to print a page to pdf file.', $variables) . '</p>';
return $output;
}
}