You are here

public function EventMeta::countRegistrations in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 8 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

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\rng

Code

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