X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fdrupal%2Fconsole%2Ftemplates%2Fmodule%2Fmodule.twig;fp=vendor%2Fdrupal%2Fconsole%2Ftemplates%2Fmodule%2Fmodule.twig;h=53540372f57786d83aed6b308f628b5900481a5d;hp=0000000000000000000000000000000000000000;hb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;hpb=57c063afa3f66b07c4bbddc2d6129a96d90f0aad diff --git a/vendor/drupal/console/templates/module/module.twig b/vendor/drupal/console/templates/module/module.twig new file mode 100644 index 000000000..53540372f --- /dev/null +++ b/vendor/drupal/console/templates/module/module.twig @@ -0,0 +1,25 @@ +{% extends "base/file.php.twig" %} + +{% block file_path %}{{machine_name}}.module{% endblock %} + +{% block use_class %} +use Drupal\Core\Routing\RouteMatchInterface; +{% endblock %} + +{% block file_methods %} +/** + * Implements hook_help(). + */ +function {{machine_name}}_help($route_name, RouteMatchInterface $route_match) { + switch ($route_name) { + // Main module help for the {{ machine_name }} module. + case 'help.page.{{ machine_name }}': + $output = ''; + $output .= '

' . t('About') . '

'; + $output .= '

' . t('{{ description|escape }}') . '

'; + return $output; + + default: + } +} +{% endblock %}