You are here

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

modules/bat_booking/bat_booking.routing.yml

File

modules/bat_booking/bat_booking.routing.yml
View source
  1. entity.bat_booking.canonical:
  2. path: '/admin/bat/config/booking/{bat_booking}'
  3. defaults:
  4. _entity_view: 'bat_booking'
  5. _title: 'Booking'
  6. requirements:
  7. _entity_access: 'bat_booking.view'
  8. options:
  9. _admin_route: TRUE
  10. entity.bat_booking.collection:
  11. path: '/admin/bat/config/booking'
  12. defaults:
  13. _entity_list: 'bat_booking'
  14. _title: 'Booking list'
  15. requirements:
  16. _permission: 'view any bat_booking entity'
  17. options:
  18. _admin_route: TRUE
  19. entity.bat_booking.add_page:
  20. path: '/admin/bat/config/booking/add'
  21. defaults:
  22. _title: 'Add booking'
  23. _controller: '\Drupal\bat_booking\Controller\BookingController::addPage'
  24. requirements:
  25. _booking_add_access: 'bat_booking'
  26. options:
  27. _admin_route: TRUE
  28. entity.bat_booking.add:
  29. path: '/admin/bat/config/booking/add/{booking_bundle}'
  30. defaults:
  31. _controller: '\Drupal\bat_booking\Controller\BookingController::add'
  32. _title_callback: '\Drupal\bat_booking\Controller\BookingController::addPageTitle'
  33. requirements:
  34. _booking_add_access: 'bat_booking:{booking_bundle}'
  35. options:
  36. _admin_route: TRUE
  37. parameters:
  38. booking_bundle:
  39. type: entity:bat_booking_bundle
  40. with_config_overrides: TRUE
  41. entity.bat_booking.edit_form:
  42. path: '/admin/bat/config/booking/{bat_booking}/edit'
  43. defaults:
  44. _entity_form: bat_booking.edit
  45. _title: 'Edit Booking'
  46. requirements:
  47. _entity_access: 'bat_booking.update'
  48. options:
  49. _admin_route: TRUE
  50. entity.bat_booking.delete_form:
  51. path: '/admin/bat/config/booking/{bat_booking}/delete'
  52. defaults:
  53. _entity_form: bat_booking.delete
  54. _title: 'Delete Booking'
  55. requirements:
  56. _entity_access: 'bat_booking.delete'
  57. options:
  58. _admin_route: TRUE
  59. entity.bat_booking_bundle.collection:
  60. path: '/admin/bat/config/booking-bundles'
  61. defaults:
  62. _entity_list: 'bat_booking_bundle'
  63. _title: 'Booking Bundle list'
  64. requirements:
  65. _permission: 'administer bat_booking_bundle entities'
  66. options:
  67. _admin_route: TRUE
  68. entity.bat_booking_bundle.type_add:
  69. path: '/admin/bat/config/booking-bundles/add'
  70. defaults:
  71. _entity_form: 'bat_booking_bundle.add'
  72. _title: 'Add booking bundle'
  73. requirements:
  74. _permission: 'administer bat_booking_bundle entities'
  75. entity.bat_booking_bundle.edit_form:
  76. path: '/admin/bat/config/booking-bundles/{bat_booking_bundle}/edit'
  77. defaults:
  78. _entity_form: 'bat_booking_bundle.edit'
  79. _title: 'Edit Booking bundle'
  80. requirements:
  81. _permission: 'administer bat_booking_bundle entities'
  82. options:
  83. _admin_route: TRUE
  84. entity.bat_booking_bundle.delete_form:
  85. path: '/admin/bat/config/booking-bundles/{bat_booking_bundle}/delete'
  86. defaults:
  87. _entity_form: 'bat_booking_bundle.delete'
  88. _title: 'Delete'
  89. requirements:
  90. _permission: 'administer bat_booking_bundle entities'