You are here

function EventMeta::countRegistrations in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/EventMeta.php \Drupal\rng\EventMeta::countRegistrations()
  2. 3.x src/EventMeta.php \Drupal\rng\EventMeta::countRegistrations()

Count how many registrations are on this event.

Return value

integer Number of registrations on this event.

Overrides EventMetaInterface::countRegistrations

1 call to EventMeta::countRegistrations()
EventMeta::remainingCapacity in src/EventMeta.php
Calculates how many more registrations can be added to this event.

File

src/EventMeta.php, line 286

Class

EventMeta
Meta event wrapper for RNG.

Namespace

Drupal\rng

Code

function countRegistrations() {
  return $this
    ->buildRegistrationQuery()
    ->count()
    ->execute();
}