public function EventMeta::countRegistrations in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 src/EventMeta.php \Drupal\rng\EventMeta::countRegistrations()
- 3.x src/EventMeta.php \Drupal\rng\EventMeta::countRegistrations()
Count how many registrations are on this event.
Return value
int Number of registrations on this event.
Overrides EventMetaInterface::countRegistrations
File
- src/
EventMeta.php, line 327
Class
- EventMeta
- Meta event wrapper for RNG.
Namespace
Drupal\rngCode
public function countRegistrations() {
return $this
->buildRegistrationQuery()
->count()
->execute();
}