Skip to content

Download

Downloads the current resource. The Resource has to implement the Enhavo\\Bundle\\MediaBundle\\Model\\FileInterface{.interpreted-text role="class"}

route

type: string

Defines which route should be used to download the selected resource.

yaml
actions:
    download:
        type: download
        route: my_download_route

ajax

type: boolean

If the value is true, the download request call is executed via "Ajax"-Call in the background.

yaml
actions:
    download:
        type: download
        route: my_download_route
        ajax: true