conneg_test.routing.yml in Drupal 10
Same filename and directory in other branches
core/modules/system/tests/modules/conneg_test/conneg_test.routing.yml
File
core/modules/system/tests/modules/conneg_test/conneg_test.routing.ymlView source
- # Tests
- conneg.test:
- path: conneg/simple.json
- defaults:
- _controller: '\Drupal\conneg_test\Controller\TestController::simple'
- requirements:
- _access: 'TRUE'
- conneg.html:
- path: conneg/html
- defaults:
- _controller: '\Drupal\conneg_test\Controller\TestController::html'
- requirements:
- _access: 'TRUE'
- conneg.simple_conneg:
- path: conneg/html
- defaults:
- _controller: '\Drupal\conneg_test\Controller\TestController::format'
- requirements:
- _access: 'TRUE'
- _format: 'json|xml'
- conneg.variable_with_period:
- path: conneg/plugin/{plugin_id}
- defaults:
- _controller: '\Drupal\conneg_test\Controller\TestController::variable'
- requirements:
- _access: 'TRUE'
- conneg.full_content_negotiation:
- path: conneg/negotiate
- defaults:
- _controller: '\Drupal\conneg_test\Controller\TestController::format'
- requirements:
- _access: 'TRUE'