You are here

public function EventMeta::getGroups in RNG - Events and Registrations 3.x

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

Get all groups for this event.

Return value

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

Overrides EventMetaInterface::getGroups

File

src/EventMeta.php, line 453

Class

EventMeta
Meta event wrapper for RNG.

Namespace

Drupal\rng

Code

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