You are here

easy_email.routing.yml in Easy Email 8

Same filename and directory in other branches
  1. 2.0.x easy_email.routing.yml

File

easy_email.routing.yml
View source
  1. entity.easy_email_type.preview:
  2. path: '/admin/structure/email-templates/templates/{easy_email_type}/preview'
  3. defaults:
  4. _entity_form: 'easy_email.add'
  5. entity_type_id: 'easy_email'
  6. bundle_parameter: 'easy_email_type'
  7. _title_callback: '\Drupal\easy_email\Controller\EasyEmailController::previewPageTitle'
  8. options:
  9. parameters:
  10. easy_email_type:
  11. type: 'entity:easy_email_type'
  12. requirements:
  13. _permission: 'administer email types'
  14. entity.easy_email_type.preview_html:
  15. path: '/admin/structure/email-templates/templates/{easy_email_type}/preview-html'
  16. defaults:
  17. _controller: '\Drupal\easy_email\Controller\EasyEmailController::previewType'
  18. requirements:
  19. _entity_access: 'easy_email_type.update'
  20. entity.easy_email_type.preview_plain:
  21. path: '/admin/structure/email-templates/templates/{easy_email_type}/preview-plain'
  22. defaults:
  23. _controller: '\Drupal\easy_email\Controller\EasyEmailController::previewTypePlain'
  24. requirements:
  25. _entity_access: 'easy_email_type.update'