You are here

function bat_event_delete_multiple 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_delete_multiple()

Delete multiple events.

Parameters

array $event_ids: An array of event IDs.

5 calls to bat_event_delete_multiple()
bat_event_entity_bundle_delete in modules/bat_event/bat_event.module
Implements hook_entity_bundle_delete().
EditRepeatingRuleConfirmationModalForm::deleteEvents in modules/bat_event_series/src/Form/EditRepeatingRuleConfirmationModalForm.php
EventSeriesDeleteEventsForm::submitForm in modules/bat_event_series/src/Entity/Form/EventSeriesDeleteEventsForm.php
This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…
EventSeriesDeleteForm::submitForm in modules/bat_event_series/src/Entity/Form/EventSeriesDeleteForm.php
This is the default entity object builder function. It is called before any other submit handler to build the new entity object to be used by the following submit handlers. At this point of the form workflow the entity is validated and the form state…
FeatureContext::after in test/behat/features/bootstrap/FeatureContext.php
@AfterScenario

File

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

Code

function bat_event_delete_multiple(array $event_ids) {
  $events = Event::loadMultiple($event_ids);
  foreach ($events as $event) {
    $event
      ->delete();
  }
}