Submits the current form and updates the current resource form view.
Type | save |
Require | |
Options | |
Class | Enhavo\Bundle\AppBundle\Action\Type\SaveActionType |
Parent | Enhavo\Bundle\AppBundle\Action\AbstractUrlActionType |
type: string default: null
Define the save route where to send the current form. If you leave that parameter, the form will send to the default action of the form. If the passed resource has already an id, that id will also passed as parameter to the generate url.
actions:
save:
type: save
route: my_save_route
type: string default: label.save
Overwrite the default label. It will be translated over the translation service automatically (See translationDomain)
actions:
myAction:
label: myLabel
# ... further option
type: string default: save
Overwrite the default icon. The Icon is part of the clickable button.
actions:
myAction:
icon: myIcon
# ... 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: null
Defines the minimum access rights a user needs to use this action.
actions:
myAction:
permission: myPermission
# ... further options