You are here

function bat_event_create 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_create()

Create a event object.

10 calls to bat_event_create()
BatEventUiBulkUpdateForm::submitForm in modules/bat_event_ui/src/Form/BatEventUiBulkUpdateForm.php
Form submission handler.
BookingConfirmationForm::submitForm in modules/bat_booking/bat_booking_example/src/Form/BookingConfirmationForm.php
Form submission handler.
EditRepeatingRuleConfirmationModalForm::addEvents in modules/bat_event_series/src/Form/EditRepeatingRuleConfirmationModalForm.php
EventAccessControlHandler::checkCreateAccess in modules/bat_event/src/EventAccessControlHandler.php
Performs create access checks.
EventManagementAccessCheck::access in modules/bat_fullcalendar/src/Access/EventManagementAccessCheck.php
Checks access to the event add page for the event type.

... See full list

File

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

Code

function bat_event_create($values = []) {
  return Event::create($values);
}