Sends the selected newsletter to any e-mail address for testing. The address can be changed each time. In contrast to the normal Send-Action, the newsletter is sent immediately.
Type | newsletter_send_test |
Options | |
Class | Enhavo\Bundle\NewsletterBundle\Action\SendTestActionType |
Parent | Enhavo\Bundle\AppBundle\Action\ModalActionType |
type: string
default:
[
'component' => 'ajax-form-modal',
'route' => 'enhavo_newsletter_newsletter_test_form',
'actionRoute' => 'enhavo_newsletter_newsletter_test'
]
In this modal the e-mail address is entered and the routes for the form and the controller are defined.
actions:
modal:
type: modal
modal:
component: my_modal_component
route: my_modal_form_route
actionRoute: my_modal_action_route
type: string default: newsletter.action.test_mail.label
Overwrite the default label. It will be translated over the translation service automatically (See translationDomain)
actions:
myAction:
label: myLabel
# ... further option
type: string default: send_newsletter_test
Overwrite the default icon. The Icon is part of the clickable button.
actions:
myAction:
icon: myIcon
# ... further option
type: string default: EnhavoNewsletterBundle
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