function TestRouteSubscriber::alterRoutes

Same name in other branches
  1. 8.x-1.x tests/modules/devel_test/src/Routing/TestRouteSubscriber.php \Drupal\devel_test\Routing\TestRouteSubscriber::alterRoutes()
  2. 5.x tests/modules/devel_test/src/Routing/TestRouteSubscriber.php \Drupal\devel_test\Routing\TestRouteSubscriber::alterRoutes()

Overrides RouteSubscriberBase::alterRoutes

File

tests/modules/devel_test/src/Routing/TestRouteSubscriber.php, line 34

Class

TestRouteSubscriber
Router subscriber class for testing purpose.

Namespace

Drupal\devel_test\Routing

Code

protected function alterRoutes(RouteCollection $collection) {
    $this->state
        ->set('devel_test_route_rebuild', 'Router rebuild fired');
}