You are here

public function TestController::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/token_test/src/Controller/TestController.php \Drupal\token_test\Controller\TestController::__construct()

Constructs a new TestController instance.

Parameters

\Drupal\Core\Utility\Token $token: The token replacement system.

File

core/modules/system/tests/modules/token_test/src/Controller/TestController.php, line 35
Contains \Drupal\token_test\Controller\TestController.

Class

TestController
Provides a test controller for token replacement.

Namespace

Drupal\token_test\Controller

Code

public function __construct(Token $token) {
  $this->token = $token;
}