function DeprecatedCsrfTokenController::create
Same name in other branches
- 9 core/modules/system/tests/modules/csrf_test/src/Controller/DeprecatedCsrfTokenController.php \Drupal\csrf_test\Controller\DeprecatedCsrfTokenController::create()
Overrides ContainerInjectionInterface::create
File
-
core/
modules/ system/ tests/ modules/ csrf_test/ src/ Controller/ DeprecatedCsrfTokenController.php, line 41
Class
- DeprecatedCsrfTokenController
- Returns responses for Deprecated CSRF token routes.
Namespace
Drupal\csrf_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.