easy_email.routing.yml in Easy Email 2.0.x
File
easy_email.routing.yml
View source
- entity.easy_email_type.preview:
- path: '/admin/structure/email-templates/templates/{easy_email_type}/preview'
- defaults:
- _entity_form: 'easy_email.add'
- entity_type_id: 'easy_email'
- bundle_parameter: 'easy_email_type'
- _title_callback: '\Drupal\easy_email\Controller\EasyEmailController::previewPageTitle'
- options:
- parameters:
- easy_email_type:
- type: 'entity:easy_email_type'
- requirements:
- _permission: 'administer email types'
-
- entity.easy_email_type.preview_html:
- path: '/admin/structure/email-templates/templates/{easy_email_type}/preview-html'
- defaults:
- _controller: '\Drupal\easy_email\Controller\EasyEmailController::previewType'
- requirements:
- _entity_access: 'easy_email_type.update'
-
- entity.easy_email_type.preview_plain:
- path: '/admin/structure/email-templates/templates/{easy_email_type}/preview-plain'
- defaults:
- _controller: '\Drupal\easy_email\Controller\EasyEmailController::previewTypePlain'
- requirements:
- _entity_access: 'easy_email_type.update'