default_format_test.routing.yml in Drupal 9
Same filename and directory in other branches
core/modules/system/tests/modules/default_format_test/default_format_test.routing.yml
File
core/modules/system/tests/modules/default_format_test/default_format_test.routing.ymlView source
- default_format_test.machine:
- path: '/default_format_test/machine'
- defaults:
- # Same controller + method!
- _controller: '\Drupal\default_format_test\DefaultFormatTestController::content'
- requirements:
- _access: 'TRUE'
- _format: 'json'
-
- default_format_test.human:
- path: '/default_format_test/human'
- defaults:
- # Same controller + method!
- _controller: '\Drupal\default_format_test\DefaultFormatTestController::content'
- requirements:
- _access: 'TRUE'
- _format: 'html'
-
- # Route definition identical to default_format_test.machine, only different name.
- # @see \Drupal\FunctionalTests\Routing\DefaultFormatTest::testMultiple
- default_format_test.machine.alias:
- path: '/default_format_test/machine'
- defaults:
- # Same controller + method!
- _controller: '\Drupal\default_format_test\DefaultFormatTestController::content'
- requirements:
- _access: 'TRUE'
- _format: 'json'