csrf_race_test.routing.yml

Same filename in other branches
  1. 9 core/modules/system/tests/modules/csrf_race_test/csrf_race_test.routing.yml
  2. 8.9.x core/modules/system/tests/modules/csrf_race_test/csrf_race_test.routing.yml
  3. 11.x core/modules/system/tests/modules/csrf_race_test/csrf_race_test.routing.yml
core/modules/system/tests/modules/csrf_race_test/csrf_race_test.routing.yml

File

core/modules/system/tests/modules/csrf_race_test/csrf_race_test.routing.yml

View source
  1. csrf_race_test.csrftoken:
  2. path: '/csrf_race/get_csrf_token/{num}'
  3. defaults:
  4. _controller: '\Drupal\csrf_race_test\Controller\TestController::getCsrfToken'
  5. requirements:
  6. _access: 'TRUE'
  7. csrf_race_test.test:
  8. path: '/csrf_race/test'
  9. defaults:
  10. _controller: '\Drupal\csrf_race_test\Controller\TestController::testMethod'
  11. requirements:
  12. _access: 'TRUE'

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