function TestController::testMethod
Same name in this branch
- 10 core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php \Drupal\csrf_race_test\Controller\TestController::testMethod()
Same name in other branches
- 9 core/modules/system/tests/modules/csrf_test/src/Controller/TestController.php \Drupal\csrf_test\Controller\TestController::testMethod()
- 9 core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php \Drupal\csrf_race_test\Controller\TestController::testMethod()
- 8.9.x core/modules/system/tests/modules/csrf_test/src/Controller/TestController.php \Drupal\csrf_test\Controller\TestController::testMethod()
- 8.9.x core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php \Drupal\csrf_race_test\Controller\TestController::testMethod()
- 11.x core/modules/system/tests/modules/csrf_test/src/Controller/TestController.php \Drupal\csrf_test\Controller\TestController::testMethod()
- 11.x core/modules/system/tests/modules/csrf_race_test/src/Controller/TestController.php \Drupal\csrf_race_test\Controller\TestController::testMethod()
Just a test method for the test routes.
Return value
\Symfony\Component\HttpFoundation\Response The response object.
1 string reference to 'TestController::testMethod'
- csrf_test.routing.yml in core/
modules/ system/ tests/ modules/ csrf_test/ csrf_test.routing.yml - core/modules/system/tests/modules/csrf_test/csrf_test.routing.yml
File
-
core/
modules/ system/ tests/ modules/ csrf_test/ src/ Controller/ TestController.php, line 18
Class
- TestController
- Just a test controller for test routes.
Namespace
Drupal\csrf_test\ControllerCode
public function testMethod() {
return new Response('Sometimes it is hard to think of test content!');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.