You are here

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

modules/bat_booking/bat_booking_example/bat_booking_example.routing.yml

File

modules/bat_booking/bat_booking_example/bat_booking_example.routing.yml
View source
  1. bat_booking_example.booking:
  2. path: '/booking/{start_date}/{end_date}/{type_id}'
  3. defaults:
  4. _controller: '\Drupal\bat_booking_example\Controller\BatBookingExampleController::batBookingConfirmationPage'
  5. _title: 'Booking'
  6. options:
  7. parameters:
  8. start_date:
  9. type: bat_date
  10. end_date:
  11. type: bat_date
  12. requirements:
  13. _permission: 'book units'