media.routing.yml

Same filename in other branches
  1. 8.9.x core/modules/media/media.routing.yml
  2. 10 core/modules/media/media.routing.yml
  3. 11.x core/modules/media/media.routing.yml
core/modules/media/media.routing.yml
7 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::getEditableConfigNames in core/modules/media/src/Form/MediaSettingsForm.php
Gets the configuration names that will be editable.
OEmbedFormatter::viewElements in core/modules/media/src/Plugin/Field/FieldFormatter/OEmbedFormatter.php
Builds a renderable array for a field value.

... See full list

File

core/modules/media/media.routing.yml

View source
  1. entity.media.revision:
  2. path: '/media/{media}/revisions/{media_revision}/view'
  3. defaults:
  4. _controller: '\Drupal\Core\Entity\Controller\EntityViewController::viewRevision'
  5. _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
  6. options:
  7. parameters:
  8. media:
  9. type: entity:media
  10. media_revision:
  11. type: entity_revision:media
  12. requirements:
  13. _entity_access: 'media_revision.view all revisions'
  14. media: \d+
  15. media.oembed_iframe:
  16. path: '/media/oembed'
  17. defaults:
  18. _controller: '\Drupal\media\Controller\OEmbedIframeController::render'
  19. requirements:
  20. _permission: 'view media'
  21. media.settings:
  22. path: '/admin/config/media/media-settings'
  23. defaults:
  24. _form: '\Drupal\media\Form\MediaSettingsForm'
  25. _title: 'Media settings'
  26. requirements:
  27. _permission: 'administer media'
  28. media.filter.preview:
  29. path: '/media/{filter_format}/preview'
  30. defaults:
  31. _controller: '\Drupal\media\Controller\MediaFilterController::preview'
  32. methods: [GET]
  33. requirements:
  34. _entity_access: 'filter_format.use'
  35. _custom_access: '\Drupal\media\Controller\MediaFilterController::formatUsesMediaEmbedFilter'
  36. editor.media_dialog:
  37. path: '/editor/dialog/media/{editor}'
  38. defaults:
  39. _form: '\Drupal\media\Form\EditorMediaDialog'
  40. _title: 'Edit media'
  41. methods: [POST]
  42. requirements:
  43. _entity_access: 'editor.use'

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