class TestRouteSubscriber
Same name in other branches
- 4.x tests/modules/devel_test/src/Routing/TestRouteSubscriber.php \Drupal\devel_test\Routing\TestRouteSubscriber
- 5.x tests/modules/devel_test/src/Routing/TestRouteSubscriber.php \Drupal\devel_test\Routing\TestRouteSubscriber
Router subscriber class for testing purpose.
Hierarchy
- class \Drupal\devel_test\Routing\TestRouteSubscriber extends \Drupal\Core\Routing\RouteSubscriberBase
Expanded class hierarchy of TestRouteSubscriber
1 string reference to 'TestRouteSubscriber'
- devel_test.services.yml in tests/
modules/ devel_test/ devel_test.services.yml - tests/modules/devel_test/devel_test.services.yml
1 service uses TestRouteSubscriber
- devel_test.test_route_subscriber in tests/
modules/ devel_test/ devel_test.services.yml - Drupal\devel_test\Routing\TestRouteSubscriber
File
-
tests/
modules/ devel_test/ src/ Routing/ TestRouteSubscriber.php, line 11
Namespace
Drupal\devel_test\RoutingView source
class TestRouteSubscriber extends RouteSubscriberBase {
/**
* {@inheritdoc}
*/
protected function alterRoutes(RouteCollection $collection) {
\Drupal::state()->set('devel_test_route_rebuild', 'Router rebuild fired');
}
}
Members
Title Sort descending | Modifiers | Object type | Summary |
---|---|---|---|
TestRouteSubscriber::alterRoutes | protected | function |