function TestController::create
Same name in this branch
- 11.x core/modules/system/tests/modules/token_test/src/Controller/TestController.php \Drupal\token_test\Controller\TestController::create()
Same name in other branches
- 9 core/modules/system/tests/modules/token_test/src/Controller/TestController.php \Drupal\token_test\Controller\TestController::create()
- 9 core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php \Drupal\csrf_race_test\Controller\TestController::create()
- 8.9.x core/modules/system/tests/modules/token_test/src/Controller/TestController.php \Drupal\token_test\Controller\TestController::create()
- 8.9.x core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php \Drupal\csrf_race_test\Controller\TestController::create()
- 10 core/modules/system/tests/modules/token_test/src/Controller/TestController.php \Drupal\token_test\Controller\TestController::create()
- 10 core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php \Drupal\csrf_race_test\Controller\TestController::create()
Overrides AutowireTrait::create
File
-
core/
modules/ system/ tests/ modules/ csrf_race_test/ src/ Controller/ TestController.php, line 27
Class
- TestController
- Controller to test concurrent CSRF token generation.
Namespace
Drupal\csrf_race_test\ControllerCode
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.