The CreateAction represents a create button for a specific route.
Type | create |
Require | |
Options | |
Class | Enhavo\Bundle\AppBundle\Action\Type\CreateActionType |
Parent | Enhavo\Bundle\AppBundle\Action\Type\OpenActionType |
type: string default: null
Define which route should be used for the create overlay.
actions:
create:
type: create
route: my_create_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.create
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: add_circle_outline
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
type: string default: EnhavoAppBundle
Set the enhavo view key of the new target window
actions:
myAction:
view_key: 'edit-view'
# ... further option