media.routing.yml

Same filename in other branches
  1. 9 core/modules/media/media.routing.yml
  2. 8.9.x core/modules/media/media.routing.yml
  3. 11.x core/modules/media/media.routing.yml
core/modules/media/media.routing.yml
10 string references to YAML keys in media.routing.yml
DynamicLocalTasks::__construct in core/modules/media/src/Plugin/Derivative/DynamicLocalTasks.php
Creates a DynamicLocalTasks object.
MediaConfigSubscriber::onSave in core/modules/media/src/EventSubscriber/MediaConfigSubscriber.php
Updates entity type definitions and ensures routes are rebuilt when needed.
MediaRouteProvider::__construct in core/modules/media/src/Routing/MediaRouteProvider.php
Constructs a new DefaultHtmlRouteProvider.
MediaSettingsForm::buildForm in core/modules/media/src/Form/MediaSettingsForm.php
Form constructor.
MediaSettingsForm::getEditableConfigNames in core/modules/media/src/Form/MediaSettingsForm.php
Gets the configuration names that will be editable.

... See full list

File

core/modules/media/media.routing.yml

View source
  1. media.oembed_iframe:
  2. path: '/media/oembed'
  3. defaults:
  4. _controller: '\Drupal\media\Controller\OEmbedIframeController::render'
  5. requirements:
  6. _permission: 'view media'
  7. media.settings:
  8. path: '/admin/config/media/media-settings'
  9. defaults:
  10. _form: '\Drupal\media\Form\MediaSettingsForm'
  11. _title: 'Media settings'
  12. requirements:
  13. _permission: 'administer media'
  14. media.filter.preview:
  15. path: '/media/{filter_format}/preview'
  16. defaults:
  17. _controller: '\Drupal\media\Controller\MediaFilterController::preview'
  18. methods: [GET]
  19. requirements:
  20. _entity_access: 'filter_format.use'
  21. _custom_access: '\Drupal\media\Controller\MediaFilterController::formatUsesMediaEmbedFilter'
  22. editor.media_dialog:
  23. path: '/editor/dialog/media/{editor}'
  24. defaults:
  25. _form: '\Drupal\media\Form\EditorMediaDialog'
  26. _title: 'Edit media'
  27. methods: [POST]
  28. requirements:
  29. _entity_access: 'editor.use'

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.