You are here

RouteSubscriber.html.twig in Drupal 7 to 8/9 Module Upgrader 8

Contains \Drupal\{{ module }}\Routing\RouteSubscriber.

File

templates/RouteSubscriber.html.twig
View source
  1. /**
  2. * @file
  3. * Contains \Drupal\{{ module }}\Routing\RouteSubscriber.
  4. */
  5. namespace Drupal\{{ module }}\Routing;
  6. use Drupal\Core\Routing\RouteSubscriberBase;
  7. use Symfony\Component\Routing\RouteCollection;
  8. /**
  9. * Listens to dynamic route events.
  10. */
  11. class RouteSubscriber extends RouteSubscriberBase {
  12. /**
  13. * {@inheritdoc}
  14. */
  15. public function alterRoutes(RouteCollection $collection) {
  16. /**
  17. * @FIXME
  18. * Parts of your hook_menu_alter() logic should be moved in here. You should NOT
  19. * use this method to define new routes -- read the documentation at
  20. * https://www.drupal.org/node/2122201 to learn how to define dynamic routes --
  21. * but to alter existing ones.
  22. */
  23. }
  24. }