You are here

function bat_event_save in Booking and Availability Management Tools for Drupal 8

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

Saves a event to the database.

Parameters

\Drupal\bat_event\Entity\Event $event: The Event object.

File

modules/bat_event/bat_event.module, line 421
Manage Events - Events store the EventValue of a Unit over a period of time.

Code

function bat_event_save(Event $event) {
  return $event
    ->save();
}