Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console / templates / module / src / Generator / generator.php.twig
1 {% extends "base/class.php.twig" %}
2
3 {% block file_path %}
4 \Drupal\{{extension}}\Generator\{{ class }}.
5 {% endblock %}
6
7 {% block namespace_class %}
8 namespace Drupal\{{extension}}\Generator;
9 {% endblock %}
10
11 {% block use_class %}
12 use Drupal\Console\Core\Generator\Generator;
13 use Drupal\Console\Core\Generator\GeneratorInterface;
14 {% endblock %}
15
16 {% block class_declaration %}
17 /**
18  * Class {{ class_name }}
19  *
20  * @package Drupal\Console\Generator
21  */
22 class {{ class_name }} extends Generator implements GeneratorInterface
23 {% endblock %}
24
25 {% block class_methods %}
26   /**
27    * {@inheritdoc}
28    */
29   public function generate(array $parameters)
30   {
31 //    Example how to render a twig template using the renderFile method
32 //    $this->renderFile(
33 //      'path/to/file.php.twig',
34 //      'path/to/file.php',
35 //      $parameters
36 //    );
37   }
38 {% endblock %}