You are here

public function EventMeta::countRegistrations in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/EventMeta.php \Drupal\rng\EventMeta::countRegistrations()
  2. 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\rng

Code

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