Create Action

The CreateAction represents a create button for a specific route

type create
require
option
class Enhavo\Bundle\AppBundle\Action\Action\CreateAction

Require

route

type: string

Define which route should be used for the create overlay.

actions:
    create:
        type: create
        route: my_create_route

Option

label

type: string

Overwrite the default label. It will be translated over the translation service automatically (See translationDomain)

actions:
    myAction:
        label: myLabel
        # ... further option

icon

type: string

Overwrite the default icon.

actions:
    myAction:
        icon: myIcon
        # ... further option

translationDomain

type: string

Overwrite the default translationDomain. EnhavoAppBundle is used by default

actions:
    myAction:
        translationDomain: myTranslationDomain
        # ... further option