file_download.routing.yml in File Download 8
1 string reference to YAML keys in file_download.routing.yml
- FileDownloadUriFieldFormatter::viewElements in src/
Plugin/ Field/ FieldFormatter/ FileDownloadUriFieldFormatter.php - Builds a renderable array for a field value.
File
file_download.routing.ymlView source
- file_download.link:
- path: '/file-download/download/{scheme}/{fid}'
- defaults:
- _controller: '\Drupal\file_download\Controller\FileDownloadDownloadController::deliver'
- # File access is controlled via a hook
- requirements:
- _access: 'TRUE'