media_entity_download.routing.yml in Media Entity Download 8.2
Same filename and directory in other branches
5 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.
- DownloadTest::testAttachmentDownload in tests/
src/ Functional/ DownloadTest.php - Tests if attachment download option created correct HTTP response headers.
- DownloadTest::testMediaDownloadByAnonymous in tests/
src/ Functional/ DownloadTest.php - Tests download of media entity files for anonymous users.
- DownloadTest::testMediaDownloadByOwner in tests/
src/ Functional/ DownloadTest.php - Tests download of media entity files by it's owner.
- 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:
- _entity_access: media.view
- _permission: 'download media'