public function EventMeta::getRegistrations in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 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\Entity\RegistrationInterface[] An array of registration entities.
Overrides EventMetaInterface::getRegistrations
File
- src/
EventMeta.php, line 312
Class
- EventMeta
- Meta event wrapper for RNG.
Namespace
Drupal\rngCode
public function getRegistrations() {
$query = $this
->buildRegistrationQuery();
return $this->entityManager
->getStorage('registration')
->loadMultiple($query
->execute());
}