You are here

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

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

Checks if a registrant is allowed to register more than once on this event.

Return value

bool Whether duplicate registrants are allowed.

Overrides EventMetaInterface::duplicateRegistrantsAllowed

File

src/EventMeta.php, line 178

Class

EventMeta
Meta event wrapper for RNG.

Namespace

Drupal\rng

Code

public function duplicateRegistrantsAllowed() {
  return !empty($this
    ->getEvent()->{EventManagerInterface::FIELD_ALLOW_DUPLICATE_REGISTRANTS}->value);
}