Downloads the current resource. The Resource has to implement the Enhavo\Bundle\MediaBundle\Model\FileInterface
Type | download |
Require | |
Options | |
Class | Enhavo\Bundle\AppBundle\Action\Type\DownloadActionType |
Parent | Enhavo\Bundle\AppBundle\Action\AbstractUrlActionType |
type: string default: null
Defines which route should be used to download the selected resource.
actions:
download:
type: download
route: my_download_route
type: boolean default: false
If the value is true, the download request call is executed via “Ajax”-Call in the background.
actions:
download:
type: download
route: my_download_route
type: array default: []
If route is defined, you can overwrite the standard parameters to generate your own url.
actions:
myAction:
route_parameters:
id: $id
type: string default: label.download
Overwrite the default label. It will be translated over the translation service automatically (See translationDomain)
actions:
myAction:
label: myLabel
# ... further option
type: string default: EnhavoAppBundle
Overwrites the default translationDomain. The selected bundle implements a translation service for automatic translation all translatable designations, e.g. the label
actions:
myAction:
translation_domain: myTranslationDomain
# ... further option
type: string default: file_download
Overwrite the default icon. The Icon is part of the clickable button.
actions:
myAction:
icon: myIcon
# ... further option
type: string default: null
Defines the minimum access rights a user needs to use this action.
actions:
myAction:
permission: myPermission
# ... further options