content_negotiation_test.routing.yml

Same filename in other branches
  1. 10 core/modules/system/tests/modules/content_negotiation_test/content_negotiation_test.routing.yml
core/modules/system/tests/modules/content_negotiation_test/content_negotiation_test.routing.yml

File

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

View source
  1. # Tests
  2. content_negotiation.test:
  3. path: content_negotiation/simple.json
  4. defaults:
  5. _controller: '\Drupal\content_negotiation_test\Controller\TestController::simple'
  6. requirements:
  7. _access: 'TRUE'
  8. content_negotiation.html:
  9. path: content_negotiation/html
  10. defaults:
  11. _controller: '\Drupal\content_negotiation_test\Controller\TestController::html'
  12. requirements:
  13. _access: 'TRUE'
  14. content_negotiation.simple_content_negotiation:
  15. path: content_negotiation/html
  16. defaults:
  17. _controller: '\Drupal\content_negotiation_test\Controller\TestController::format'
  18. requirements:
  19. _access: 'TRUE'
  20. _format: 'json|xml'
  21. content_negotiation.variable_with_period:
  22. path: content_negotiation/plugin/{plugin_id}
  23. defaults:
  24. _controller: '\Drupal\content_negotiation_test\Controller\TestController::variable'
  25. requirements:
  26. _access: 'TRUE'
  27. content_negotiation.full_content_negotiation:
  28. path: content_negotiation/negotiate
  29. defaults:
  30. _controller: '\Drupal\content_negotiation_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.