You are here

courier.routing.yml in Courier 8

Same filename and directory in other branches
  1. 2.x courier.routing.yml

File

courier.routing.yml
View source
  1. entity.courier_template_collection.channel:
  2. path: '/courier/collection/{courier_template_collection}/template/{courier_channel}'
  3. defaults:
  4. _controller: '\Drupal\courier\Controller\ChannelFormController::template'
  5. _title: 'Edit template'
  6. requirements:
  7. _entity_access: 'courier_template_collection.templates'
  8. options:
  9. parameters:
  10. courier_template_collection:
  11. type: entity:courier_template_collection
  12. courier_channel:
  13. type: 'courier_channel'
  14. entity.courier_template_collection.tokens:
  15. path: '/courier/collection/{courier_template_collection}/tokens'
  16. defaults:
  17. _controller: '\Drupal\courier\Controller\ChannelFormController::tokens'
  18. _title: 'Token list'
  19. requirements:
  20. _entity_access: 'courier_template_collection.templates'
  21. options:
  22. parameters:
  23. courier_template_collection:
  24. type: entity:courier_template_collection
  25. entity.courier_email.canonical:
  26. path: '/courier/email/{courier_email}'
  27. defaults:
  28. _entity_view: 'courier_email'
  29. _title: 'Email'
  30. requirements:
  31. _entity_access: 'courier_email.view'
  32. entity.courier_email.edit_form:
  33. path: '/courier/email/{courier_email}/edit'
  34. defaults:
  35. _entity_form: 'courier_email.edit'
  36. _title: 'Edit email'
  37. requirements:
  38. _entity_access: 'courier_email.update'
  39. entity.courier_email.delete_form:
  40. path: '/courier/email/{courier_email}/delete'
  41. defaults:
  42. _entity_form: 'courier_email.delete'
  43. _title: 'Delete email'
  44. requirements:
  45. _entity_access: 'courier_email.delete'
  46. courier.admin_config_communication:
  47. path: '/admin/config/communication'
  48. defaults:
  49. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  50. _title: 'Communication'
  51. requirements:
  52. _permission: 'access administration pages'
  53. courier.admin.settings:
  54. path: '/admin/config/communication/courier'
  55. defaults:
  56. _form: '\Drupal\courier\Form\Settings'
  57. _title: 'Courier settings'
  58. requirements:
  59. _permission: 'administer courier'
  60. courier.admin.maintenance:
  61. path: '/admin/config/communication/courier/maintenance'
  62. defaults:
  63. _form: '\Drupal\courier\Form\CourierMaintenanceForm'
  64. _title: 'Courier maintenance'
  65. requirements:
  66. _permission: 'administer courier'