media.routing.yml
Same filename in other branches
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.
File
-
core/
modules/ media/ media.routing.yml
View source
- entity.media.revision:
- path: '/media/{media}/revisions/{media_revision}/view'
- defaults:
- _controller: '\Drupal\Core\Entity\Controller\EntityViewController::viewRevision'
- _title_callback: '\Drupal\Core\Entity\Controller\EntityController::title'
- options:
- parameters:
- media:
- type: entity:media
- media_revision:
- type: entity_revision:media
- requirements:
- _entity_access: 'media_revision.view all revisions'
- media: \d+
-
- media.oembed_iframe:
- path: '/media/oembed'
- defaults:
- _controller: '\Drupal\media\Controller\OEmbedIframeController::render'
- requirements:
- _permission: 'view media'
-
- media.settings:
- path: '/admin/config/media/media-settings'
- defaults:
- _form: '\Drupal\media\Form\MediaSettingsForm'
- _title: 'Media settings'
- requirements:
- _permission: 'administer media'
-
- media.filter.preview:
- path: '/media/{filter_format}/preview'
- defaults:
- _controller: '\Drupal\media\Controller\MediaFilterController::preview'
- methods: [GET]
- requirements:
- _entity_access: 'filter_format.use'
- _custom_access: '\Drupal\media\Controller\MediaFilterController::formatUsesMediaEmbedFilter'
-
- editor.media_dialog:
- path: '/editor/dialog/media/{editor}'
- defaults:
- _form: '\Drupal\media\Form\EditorMediaDialog'
- _title: 'Edit media'
- methods: [POST]
- requirements:
- _entity_access: 'editor.use'
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.