conneg_test.routing.yml

Same filename in other branches
  1. 9 core/modules/system/tests/modules/conneg_test/conneg_test.routing.yml
core/modules/system/tests/modules/conneg_test/conneg_test.routing.yml

File

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

View source
  1. # Tests
  2. conneg.simpletest:
  3. path: conneg/simple.json
  4. defaults:
  5. _controller: '\Drupal\conneg_test\Controller\TestController::simple'
  6. requirements:
  7. _access: 'TRUE'
  8. conneg.html:
  9. path: conneg/html
  10. defaults:
  11. _controller: '\Drupal\conneg_test\Controller\TestController::html'
  12. requirements:
  13. _access: 'TRUE'
  14. conneg.simple_conneg:
  15. path: conneg/html
  16. defaults:
  17. _controller: '\Drupal\conneg_test\Controller\TestController::format'
  18. requirements:
  19. _access: 'TRUE'
  20. _format: 'json|xml'
  21. conneg.variable_with_period:
  22. path: conneg/plugin/{plugin_id}
  23. defaults:
  24. _controller: '\Drupal\conneg_test\Controller\TestController::variable'
  25. requirements:
  26. _access: 'TRUE'
  27. conneg.full_content_negotiation:
  28. path: conneg/negotiate
  29. defaults:
  30. _controller: '\Drupal\conneg_test\Controller\TestController::format'
  31. requirements:
  32. _access: 'TRUE'

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