media_test_oembed.routing.yml in Drupal 10
Same filename and directory in other branches
core/modules/media/tests/modules/media_test_oembed/media_test_oembed.routing.yml
1 string reference to YAML keys in media_test_oembed.routing.yml
- OEmbedTestTrait::hijackProviderEndpoints in core/
modules/ media/ tests/ src/ Traits/ OEmbedTestTrait.php - Ensures that all oEmbed provider endpoints defined in the fixture providers.json will use the media_test_oembed.resource.get route as their URL.
File
core/modules/media/tests/modules/media_test_oembed/media_test_oembed.routing.ymlView source
- media_test_oembed.resource.get:
- path: '/media_test_oembed/resource'
- defaults:
- _controller: '\Drupal\media_test_oembed\Controller\ResourceController::get'
- requirements:
- _access: 'TRUE'
- media_test_oembed.resource.thumbnail:
- path: '/media_test_oembed/thumbnail'
- defaults:
- _controller: '\Drupal\media_test_oembed\Controller\ResourceController::getThumbnailWithNoExtension'
- requirements:
- _access: 'TRUE'