function bat_event_series_load in Booking and Availability Management Tools for Drupal 8
Fetches an event object.
Parameters
int $event_id: Integer specifying the event id.
bool $reset: A boolean indicating that the internal cache should be reset.
Return value
object A fully-loaded $event object or FALSE if it cannot be loaded.
See also
bat_event_series_load_multiple()
File
- modules/
bat_event_series/ bat_event_series.module, line 298
Code
function bat_event_series_load($event_id = NULL, $reset = FALSE) {
if ($reset) {
\Drupal::entityTypeManager()
->getStorage('bat_event_series')
->resetCache([
$event_id,
]);
}
return EventSeries::load($event_id);
}