protected function TestRouteSubscriber::alterRoutes in Devel 8.3
Same name and namespace in other branches
- 8 tests/modules/devel_test/src/Routing/TestRouteSubscriber.php \Drupal\devel_test\Routing\TestRouteSubscriber::alterRoutes()
- 8.2 tests/modules/devel_test/src/Routing/TestRouteSubscriber.php \Drupal\devel_test\Routing\TestRouteSubscriber::alterRoutes()
- 4.x tests/modules/devel_test/src/Routing/TestRouteSubscriber.php \Drupal\devel_test\Routing\TestRouteSubscriber::alterRoutes()
Alters existing routes for a specific collection.
Parameters
\Symfony\Component\Routing\RouteCollection $collection: The route collection for adding routes.
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\RoutingCode
protected function alterRoutes(RouteCollection $collection) {
$this->state
->set('devel_test_route_rebuild', 'Router rebuild fired');
}