For more information about this repository, visit the project page at https://www.drupal.org/project/twig_tweak
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
984 B
25 lines
984 B
<?php |
|
|
|
/** |
|
* @file |
|
* Primary module hooks for Twig Tweak module. |
|
*/ |
|
|
|
use Drupal\Core\Routing\RouteMatchInterface; |
|
use Drupal\Core\StringTranslation\TranslatableMarkup; |
|
|
|
/** |
|
* Implements hook_help(). |
|
*/ |
|
function twig_tweak_help($route_name, RouteMatchInterface $route_match) { |
|
if ($route_name == 'help.page.twig_tweak') { |
|
$output = ''; |
|
$output .= '<h3>' . (string) new TranslatableMarkup('About') . '</h3>'; |
|
$output .= '<p>' . (string) new TranslatableMarkup('Twig Tweak is a small module which provides a Twig extension with some useful functions and filters that can improve development experience.') . '</p>'; |
|
$output .= '<p>' . (string) new TranslatableMarkup('You can click on the links below for more information about this module.') . '<p>'; |
|
$output .= '<p>' . (string) new TranslatableMarkup('<a href=":project_link">Project page</a>', [ |
|
':project_link' => 'https://www.drupal.org/project/twig_tweak', |
|
]) . '<p>'; |
|
return $output; |
|
} |
|
}
|
|
|