X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Ftemplates%2FRouteSubscriber.html.twig;fp=web%2Fmodules%2Fcontrib%2Fdrupalmoduleupgrader%2Ftemplates%2FRouteSubscriber.html.twig;h=32429bdc2c401e735bc93fca9f0c0bba323f766b;hp=0000000000000000000000000000000000000000;hb=8acec36f19c470dfcda1ae2336826a782f41874c;hpb=e0411c4e83ba0d079034db83c3f7f55be24a0e35 diff --git a/web/modules/contrib/drupalmoduleupgrader/templates/RouteSubscriber.html.twig b/web/modules/contrib/drupalmoduleupgrader/templates/RouteSubscriber.html.twig new file mode 100644 index 000000000..32429bdc2 --- /dev/null +++ b/web/modules/contrib/drupalmoduleupgrader/templates/RouteSubscriber.html.twig @@ -0,0 +1,29 @@ +/** + * @file + * Contains \Drupal\{{ module }}\Routing\RouteSubscriber. + */ + +namespace Drupal\{{ module }}\Routing; + +use Drupal\Core\Routing\RouteSubscriberBase; +use Symfony\Component\Routing\RouteCollection; + +/** + * Listens to dynamic route events. + */ +class RouteSubscriber extends RouteSubscriberBase { + + /** + * {@inheritdoc} + */ + public function alterRoutes(RouteCollection $collection) { + /** + * @FIXME + * Parts of your hook_menu_alter() logic should be moved in here. You should NOT + * use this method to define new routes -- read the documentation at + * https://www.drupal.org/node/2122201 to learn how to define dynamic routes -- + * but to alter existing ones. + */ + } + +}