You are here

function registration_load_multiple in Entity Registration 8

Same name and namespace in other branches
  1. 8.2 registration.module \registration_load_multiple()
  2. 7.2 registration.module \registration_load_multiple()
  3. 7 registration.module \registration_load_multiple()

Loads multiple registrations by ID or based on a set of matching conditions.

Parameters

$registration_ids:

$conditions: An array of conditions on the {registration} table in the form 'field' => $value.

$reset: Whether to reset the internal registration loading cache.

Return value

An array of registration objects indexed by registration_id.

See also

entity_load()

5 calls to registration_load_multiple()
RegistrationViewsHandlerStateEdit::views_form_submit in modules/registration_views/registration_views.module
Form submit method.
registration_cron in ./registration.module
Implements hook_cron().
registration_load in ./registration.module
Loads a registration by ID.
registration_registrations_page in ./registration.module
Page callback: Show a list of registrations for a host entity.
registration_send_broadcast in ./registration.module
Send an email to all registrations for a host entity.

File

./registration.module, line 1781

Code

function registration_load_multiple($registration_ids = array(), $conditions = array(), $reset = FALSE) {
  if (empty($registration_ids) && empty($conditions)) {
    return array();
  }
  return \Drupal::entityManager()
    ->getStorage('registration')
    ->loadByProperties($conditions);
}