You are here

public function TestRouteSubscriber::__construct in Devel 8.3

Same name and namespace in other branches
  1. 4.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\Routing

Code

public function __construct(State $state) {
  $this->state = $state;
}