You are here

bat.routing.yml in Booking and Availability Management Tools for Drupal 8

File

bat.routing.yml
View source
  1. # Bat overview page
  2. bat.admin:
  3. path: '/admin/bat'
  4. defaults:
  5. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  6. _title: 'Bat'
  7. requirements:
  8. _permission: 'access administration pages'
  9. bat.admin.config:
  10. path: '/admin/bat/config'
  11. defaults:
  12. _controller: '\Drupal\system\Controller\SystemController::systemAdminMenuBlockPage'
  13. _title: 'Configuration'
  14. requirements:
  15. _permission: 'access administration pages'
  16. # Type Group routing definition
  17. entity.bat_type_group.canonical:
  18. path: '/admin/bat/config/type-group/{bat_type_group}'
  19. defaults:
  20. _entity_view: 'bat_type_group'
  21. _title: 'Type Group'
  22. requirements:
  23. _entity_access: 'bat_type_group.view'
  24. entity.bat_type_group.collection:
  25. path: '/admin/bat/config/type-group'
  26. defaults:
  27. _entity_list: 'bat_type_group'
  28. _title: 'Type Group list'
  29. requirements:
  30. _permission: 'view any bat_type_group entity'
  31. entity.bat_type_group.add_page:
  32. path: '/admin/bat/config/type-group/add'
  33. defaults:
  34. _title: 'Add Type Group'
  35. _controller: '\Drupal\bat\Controller\TypeGroupController::addPage'
  36. requirements:
  37. _group_type_add_access: 'bat_type_group'
  38. options:
  39. _admin_route: TRUE
  40. entity.bat_type_group.add_form:
  41. path: '/admin/bat/config/type-group/add/{type_group_bundle}'
  42. defaults:
  43. _controller: '\Drupal\bat\Controller\TypeGroupController::add'
  44. _title_callback: '\Drupal\bat\Controller\TypeGroupController::addPageTitle'
  45. requirements:
  46. _group_type_add_access: 'bat_type_group:{type_group_bundle}'
  47. options:
  48. _admin_route: TRUE
  49. parameters:
  50. type_group_bundle:
  51. type: entity:bat_type_group_bundle
  52. with_config_overrides: TRUE
  53. entity.bat_type_group.edit_form:
  54. path: '/admin/bat/config/type-group/{bat_type_group}/edit'
  55. defaults:
  56. _entity_form: bat_type_group.edit
  57. _title: 'Edit Type Group'
  58. requirements:
  59. _entity_access: 'bat_type_group.update'
  60. entity.bat_type_group.delete_form:
  61. path: '/admin/bat/config/type-group/{bat_type_group}/delete'
  62. defaults:
  63. _entity_form: bat_type_group.delete
  64. _title: 'Delete Type Group'
  65. requirements:
  66. _entity_access: 'bat_type_group.delete'
  67. entity.bat_type_group_bundle.collection:
  68. path: '/admin/bat/config/group-types'
  69. defaults:
  70. _entity_list: 'bat_type_group_bundle'
  71. _title: 'Type Group Bundles list'
  72. requirements:
  73. _permission: 'administer bat_type_group_bundle entities'
  74. options:
  75. _admin_route: TRUE
  76. entity.bat_type_group_bundle.type_add:
  77. path: '/admin/bat/config/group-types/add'
  78. defaults:
  79. _entity_form: 'bat_type_group_bundle.add'
  80. _title: 'Add type group bundle'
  81. requirements:
  82. _permission: 'administer bat_type_group_bundle entities'
  83. entity.bat_type_group_bundle.edit_form:
  84. path: '/admin/bat/config/group-types/{bat_type_group_bundle}/edit'
  85. defaults:
  86. _entity_form: bat_type_group_bundle.edit
  87. _title: 'Edit type group bundle'
  88. requirements:
  89. _permission: 'administer bat_type_group_bundle entities'
  90. options:
  91. _admin_route: TRUE
  92. entity.bat_type_group_bundle.delete_form:
  93. path: '/admin/bat/config/group-types/{bat_type_group_bundle}/delete'
  94. defaults:
  95. _entity_form: 'bat_type_group_bundle.delete'
  96. _title: 'Delete'
  97. requirements:
  98. _permission: 'administer bat_type_group_bundle entities'
  99. bat.admin.date_format:
  100. path: '/admin/bat/config/date-format'
  101. defaults:
  102. _form: '\Drupal\bat\Form\DateFormatForm'
  103. _title: 'Date format'
  104. requirements:
  105. _permission: 'configure bat settings'