You are here

function bat_event_load_state_by_machine_name 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_load_state_by_machine_name()

Parameters

string $machine_name:

2 calls to bat_event_load_state_by_machine_name()
bat_event_get_calendar_response in modules/bat_event/bat_event.module
Given a date range and a set of valid states it will return all units within the set of valid states.
bat_event_get_matching_units_from_calendar in modules/bat_event/bat_event.module
Returns matching units based on a provided Calendar. A Calendar can be instantiated in a number of ways - bat_event offers bat_event_get_calendar. Using an already setup calendar multiple times reduces overall load.

File

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

Code

function bat_event_load_state_by_machine_name($machine_name) {
  return State::loadbyMachineName($machine_name);
}