function EventMeta::getRegistrations in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/EventMeta.php \Drupal\rng\EventMeta::getRegistrations()
- 3.x src/EventMeta.php \Drupal\rng\EventMeta::getRegistrations()
Get all registrations for this event.
Return value
\Drupal\rng\RegistrationInterface[] An array of registration entities.
Overrides EventMetaInterface::getRegistrations
File
- src/
EventMeta.php, line 278
Class
- EventMeta
- Meta event wrapper for RNG.
Namespace
Drupal\rngCode
function getRegistrations() {
$query = $this
->buildRegistrationQuery();
return $this->entityManager
->getStorage('registration')
->loadMultiple($query
->execute());
}