content_negotiation_test.routing.yml
Same filename in other branches
File
-
core/
modules/ system/ tests/ modules/ content_negotiation_test/ content_negotiation_test.routing.yml
View source
- # Tests
- content_negotiation.test:
- path: content_negotiation/simple.json
- defaults:
- _controller: '\Drupal\content_negotiation_test\Controller\TestController::simple'
- requirements:
- _access: 'TRUE'
- content_negotiation.html:
- path: content_negotiation/html
- defaults:
- _controller: '\Drupal\content_negotiation_test\Controller\TestController::html'
- requirements:
- _access: 'TRUE'
- content_negotiation.simple_content_negotiation:
- path: content_negotiation/html
- defaults:
- _controller: '\Drupal\content_negotiation_test\Controller\TestController::format'
- requirements:
- _access: 'TRUE'
- _format: 'json|xml'
- content_negotiation.variable_with_period:
- path: content_negotiation/plugin/{plugin_id}
- defaults:
- _controller: '\Drupal\content_negotiation_test\Controller\TestController::variable'
- requirements:
- _access: 'TRUE'
- content_negotiation.full_content_negotiation:
- path: content_negotiation/negotiate
- defaults:
- _controller: '\Drupal\content_negotiation_test\Controller\TestController::format'
- requirements:
- _access: 'TRUE'
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.