function 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\Controller

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.