f7c52b53c235d839fa9815f6f082e838d02b7218
[yaffs-website] / vendor / drupal / console / templates / module / src / Routing / route-subscriber.php.twig
1 {% extends "base/class.php.twig" %}
2
3 {% block file_path %}
4 \Drupal\{{module}}\Routing\{{ class }}.
5 {% endblock %}
6
7 {% block namespace_class %}
8 namespace Drupal\{{module}}\Routing;
9 {% endblock %}
10
11 {% block use_class %}
12 use Drupal\Core\Routing\RouteSubscriberBase;
13 use Symfony\Component\Routing\RouteCollection;
14 {% endblock %}
15
16 {% block class_declaration %}
17 /**
18  * Class {{ class }}.
19  *
20  * @package Drupal\{{module}}\Routing
21  * Listens to the dynamic route events.
22  */
23 class {{ class }} extends RouteSubscriberBase {% endblock %}
24 {% block class_methods %}
25   /**
26    * {@inheritdoc}
27    */
28   protected function alterRoutes(RouteCollection $collection) {
29   }{% endblock %}