You are here

function bat_event_series_load_multiple in Booking and Availability Management Tools for Drupal 8

Load multiple events based on certain conditions.

Parameters

array $event_ids: An array of event IDs.

array $conditions: An array of conditions to match against the {bat_events} table.

bool $reset: A boolean indicating that the internal cache should be reset.

Return value

array An array of event objects, indexed by event_id.

See also

bat_event_series_load()

File

modules/bat_event_series/bat_event_series.module, line 321

Code

function bat_event_series_load_multiple(array $event_ids = NULL, $reset = FALSE) {
  if ($reset) {
    \Drupal::entityTypeManager()
      ->getStorage('bat_event_series')
      ->resetCache($event_ids);
  }
  return EventSeries::loadMultiple($event_ids);
}