public function BatBookingExampleController::batBookingConfirmationPage in Booking and Availability Management Tools for Drupal 8
1 string reference to 'BatBookingExampleController::batBookingConfirmationPage'
- bat_booking_example.routing.yml in modules/
bat_booking/ bat_booking_example/ bat_booking_example.routing.yml - modules/bat_booking/bat_booking_example/bat_booking_example.routing.yml
File
- modules/
bat_booking/ bat_booking_example/ src/ Controller/ BatBookingExampleController.php, line 24 - Contains \Drupal\bat_booking_example\Controller\BatBookingExampleController.
Class
Namespace
Drupal\bat_booking_example\ControllerCode
public function batBookingConfirmationPage($start_date, $end_date, $type_id) {
$header = $start_date
->format('Y-m-d') . ' - ' . $end_date
->format('Y-m-d');
$form = $this
->formBuilder()
->getForm('Drupal\\bat_booking_example\\Form\\BookingConfirmationForm', $start_date, $end_date, $type_id);
return [
'#theme' => 'booking_confirmation_page',
'#header' => $header,
'#form' => $form,
];
}