function bat_booking_delete in Booking and Availability Management Tools for Drupal 8
Same name and namespace in other branches
- 7 modules/bat_booking/bat_booking.module \bat_booking_delete()
Deletes a Bat Booking.
Parameters
\Drupal\bat_booking\Entity\Booking $booking: The Booking object that represents the booking to delete.
File
- modules/
bat_booking/ bat_booking.module, line 169
Code
function bat_booking_delete(Booking $booking) {
$booking
->delete();
}