You are here

smart_date_recur.routing.yml in Smart Date 3.0.x

modules/smart_date_recur/smart_date_recur.routing.yml

File

modules/smart_date_recur/smart_date_recur.routing.yml
View source
  1. smart_date_recur.instances:
  2. path: '/admin/content/smart_date_recur/{rrule}/instances/{modal}'
  3. options:
  4. parameters:
  5. rrule:
  6. type: entity:smart_date_rule
  7. defaults:
  8. _controller: '\Drupal\smart_date_recur\Controller\Instances::listInstances'
  9. _title: 'Manage Instances'
  10. modal: FALSE
  11. requirements:
  12. _permission: 'reschedule smart date recur instances'
  13. smart_date_recur.apply_changes:
  14. path: '/admin/content/smart_date_recur/{rrule}/apply_changes'
  15. options:
  16. parameters:
  17. rrule:
  18. type: entity:smart_date_rule
  19. defaults:
  20. _controller: '\Drupal\smart_date_recur\Controller\Instances::applyChanges'
  21. _title: 'Apply Changes'
  22. requirements:
  23. _permission: 'reschedule smart date recur instances'
  24. smart_date_recur.instance.reschedule:
  25. path: '/admin/content/smart_date_recur/{rrule}/instance/reschedule/{index}'
  26. options:
  27. parameters:
  28. rrule:
  29. type: entity:smart_date_rule
  30. defaults:
  31. _form: '\Drupal\smart_date_recur\Form\SmartDateOverrideForm'
  32. _title: 'Override an Instance'
  33. requirements:
  34. _permission: 'reschedule smart date recur instances'
  35. smart_date_recur.instance.reschedule.ajax:
  36. path: '/admin/content/smart_date_recur/{rrule}/instance/reschedule/{index}/ajax'
  37. options:
  38. parameters:
  39. rrule:
  40. type: entity:smart_date_rule
  41. defaults:
  42. _controller: '\Drupal\smart_date_recur\Controller\Instances::reschedule'
  43. _title: 'Override an Instance'
  44. requirements:
  45. _permission: 'reschedule smart date recur instances'
  46. smart_date_recur.instance.remove:
  47. path: '/admin/content/smart_date_recur/{rrule}/instance/remove/{index}'
  48. options:
  49. parameters:
  50. rrule:
  51. type: entity:smart_date_rule
  52. defaults:
  53. _form: '\Drupal\smart_date_recur\Form\SmartDateRemoveInstanceForm'
  54. _title: 'Remove an Instance'
  55. requirements:
  56. _permission: 'cancel smart date recur instances'
  57. smart_date_recur.instance.remove.ajax:
  58. path: '/admin/content/smart_date_recur/{rrule}/instance/remove/{index}/ajax'
  59. options:
  60. parameters:
  61. rrule:
  62. type: entity:smart_date_rule
  63. defaults:
  64. _controller: '\Drupal\smart_date_recur\Controller\Instances::removeAjax'
  65. _title: 'Remove an Instance'
  66. requirements:
  67. _permission: 'cancel smart date recur instances'
  68. smart_date_recur.instance.revert.ajax:
  69. path: '/admin/content/smart_date_recur/{entity}/instance/revert/{confirm}/ajax'
  70. options:
  71. parameters:
  72. entity:
  73. type: entity:smart_date_override
  74. defaults:
  75. _controller: '\Drupal\smart_date_recur\Controller\Instances::revertAjax'
  76. _title: 'Revert an Instance'
  77. requirements:
  78. _permission: 'reschedule smart date recur instances'
  79. entity.smart_date_override.delete_form:
  80. path: '/admin/content/smart_date_recur/overrides/{smart_date_override}/delete'
  81. defaults:
  82. # Calls the form.delete controller, defined in the smart_date_override entity.
  83. _entity_form: smart_date_override.delete
  84. _title: 'Revert to Default'
  85. requirements:
  86. _permission: 'reschedule smart date recur instances'