function TestController::create

Overrides ControllerBase::create

File

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

Class

TestController
Controller to test concurrent CSRF token generation.

Namespace

Drupal\csrf_race_test\Controller

Code

public static function create(ContainerInterface $container) {
  return new static($container->get('csrf_token'));
}

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