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.ymlView source
- bat_booking_example.booking:
- path: '/booking/{start_date}/{end_date}/{type_id}'
- defaults:
- _controller: '\Drupal\bat_booking_example\Controller\BatBookingExampleController::batBookingConfirmationPage'
- _title: 'Booking'
- options:
- parameters:
- start_date:
- type: bat_date
- end_date:
- type: bat_date
- requirements:
- _permission: 'book units'