public function EventMeta::countRegistrations in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/EventMeta.php \Drupal\rng\EventMeta::countRegistrations()
- 8 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 336
Class
- EventMeta
- Meta event wrapper for RNG.
Namespace
Drupal\rngCode
public function countRegistrations() {
return $this
->buildRegistrationQuery()
->count()
->execute();
}