You are here

function EventMeta::getGroups in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/EventMeta.php \Drupal\rng\EventMeta::getGroups()
  2. 3.x src/EventMeta.php \Drupal\rng\EventMeta::getGroups()

Get all groups for this event.

Return value

\Drupal\rng\GroupInterface[] An array of registration_group entities.

Overrides EventMetaInterface::getGroups

File

src/EventMeta.php, line 403

Class

EventMeta
Meta event wrapper for RNG.

Namespace

Drupal\rng

Code

function getGroups() {
  $query = $this
    ->buildGroupQuery();
  return $this->entityManager
    ->getStorage('registration_group')
    ->loadMultiple($query
    ->execute());
}