You are here

public function EventMeta::duplicateRegistrantsAllowed in RNG - Events and Registrations 8

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

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

Return value

boolean Whether duplicate registrants are allowed.

Overrides EventMetaInterface::duplicateRegistrantsAllowed

File

src/EventMeta.php, line 142

Class

EventMeta
Meta event wrapper for RNG.

Namespace

Drupal\rng

Code

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