vendor_stream_wrapper.routing.yml in Vendor Stream Wrapper 8
1 string reference to YAML keys in vendor_stream_wrapper.routing.yml
- VendorStreamWrapper::getExternalUrl in src/
StreamWrapper/ VendorStreamWrapper.php - Returns a web accessible URL for the resource.
File
vendor_stream_wrapper.routing.ymlView source
- vendor_stream_wrapper.vendor_file_download:
- path: '/vendor_files/{filepath}'
- defaults:
- _controller: 'Drupal\vendor_stream_wrapper\Controller\VendorFileDownloadController::download'
- requirements:
- # Permissive regex to allow slashes in filepath see
- # http://symfony.com/doc/current/cookbook/routing/slash_in_parameter.html
- filepath: .+
- _permission: 'access content'