media_entity_download.routing.yml in Media Entity Download 8
Same filename and directory in other branches
2 string references to YAML keys in media_entity_download.routing.yml
- DownloadLinkFieldFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ DownloadLinkFieldFormatter.php - Builds a renderable array for a field value.
- MediaDownload::getUrl in src/
Plugin/ Linkit/ Substitution/ MediaDownload.php - Get the URL associated with a given entity.
File
media_entity_download.routing.ymlView source
- media_entity_download.download:
- path: '/media/{media}/download'
- defaults:
- _controller: '\Drupal\media_entity_download\Controller\DownloadController::download'
- _title: 'Download Media'
- requirements:
- _permission: 'download media'