bat-8.x-1.x-dev/modules/bat_booking/bat_booking_example/bat_booking_example.routing.yml
modules/bat_booking/bat_booking_example/bat_booking_example.routing.yml
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'
