function TestRouteSubscriber::__construct
Same name in other branches
- 5.x tests/modules/devel_test/src/Routing/TestRouteSubscriber.php \Drupal\devel_test\Routing\TestRouteSubscriber::__construct()
Constructor method.
Parameters
Drupal\Core\State\State $state: The object State.
File
-
tests/
modules/ devel_test/ src/ Routing/ TestRouteSubscriber.php, line 27
Class
- TestRouteSubscriber
- Router subscriber class for testing purpose.
Namespace
Drupal\devel_test\RoutingCode
public function __construct(State $state) {
$this->state = $state;
}