function bat_event_delete in Booking and Availability Management Tools for Drupal 8
Same name and namespace in other branches
- 7 modules/bat_event/bat_event.module \bat_event_delete()
Deletes a event.
Parameters
\Drupal\bat_event\Entity\Event $event: The Event object that represents the event to delete
File
- modules/
bat_event/ bat_event.module, line 390 - Manage Events - Events store the EventValue of a Unit over a period of time.
Code
function bat_event_delete(Event $event) {
$event
->delete();
}