public function TestController::__construct in Drupal 8
Same name in this branch
- 8 core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php \Drupal\csrf_race_test\Controller\TestController::__construct()
- 8 core/modules/system/tests/modules/token_test/src/Controller/TestController.php \Drupal\token_test\Controller\TestController::__construct()
Same name and namespace in other branches
- 9 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 29
Class
- TestController
- Provides a test controller for token replacement.
Namespace
Drupal\token_test\ControllerCode
public function __construct(Token $token) {
$this->token = $token;
}