public function EventMeta::countRegistrants in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 3.x src/EventMeta.php \Drupal\rng\EventMeta::countRegistrants()
1 call to EventMeta::countRegistrants()
- EventMeta::remainingRegistrantCapacity in src/
EventMeta.php - Calculates how many more registrants can be added to this event.
File
- src/
EventMeta.php, line 320
Class
- EventMeta
- Meta event wrapper for RNG.
Namespace
Drupal\rngCode
public function countRegistrants() {
return $this
->buildEventRegistrantQuery()
->countQuery()
->execute()
->fetchField();
}