TestController::$tokenGenerator

Same name in other branches
  1. 8.9.x core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php \Drupal\csrf_race_test\Controller\TestController::tokenGenerator
  2. 10 core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php \Drupal\csrf_race_test\Controller\TestController::tokenGenerator
  3. 11.x core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php \Drupal\csrf_race_test\Controller\TestController::tokenGenerator

Token generator service.

Type: \Drupal\Core\Access\CsrfTokenGenerator

File

core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php, line 20

Class

TestController
Controller to test concurrent CSRF token generation.

Namespace

Drupal\csrf_race_test\Controller

Code

protected $tokenGenerator;

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