You are here

function bat_booking_create in Booking and Availability Management Tools for Drupal 8

Same name and namespace in other branches
  1. 7 modules/bat_booking/bat_booking.module \bat_booking_create()

Create a booking object.

2 calls to bat_booking_create()
BookingAccessControlHandler::checkCreateAccess in modules/bat_booking/src/BookingAccessControlHandler.php
Performs create access checks.
BookingConfirmationForm::submitForm in modules/bat_booking/bat_booking_example/src/Form/BookingConfirmationForm.php
Form submission handler.

File

modules/bat_booking/bat_booking.module, line 44

Code

function bat_booking_create($values = []) {
  return Booking::create($values);
}