You are here

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

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

Get all registrations for this event.

Return value

\Drupal\rng\Entity\RegistrationInterface[] An array of registration entities.

Overrides EventMetaInterface::getRegistrations

File

src/EventMeta.php, line 321

Class

EventMeta
Meta event wrapper for RNG.

Namespace

Drupal\rng

Code

public function getRegistrations() {
  $query = $this
    ->buildRegistrationQuery();
  return $this->entityManager
    ->getStorage('registration')
    ->loadMultiple($query
    ->execute());
}