public function EventMeta::duplicateRegistrantsAllowed in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 src/EventMeta.php \Drupal\rng\EventMeta::duplicateRegistrantsAllowed()
- 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
bool Whether duplicate registrants are allowed.
Overrides EventMetaInterface::duplicateRegistrantsAllowed
File
- src/
EventMeta.php, line 168
Class
- EventMeta
- Meta event wrapper for RNG.
Namespace
Drupal\rngCode
public function duplicateRegistrantsAllowed() {
return !empty($this
->getEvent()->{EventManagerInterface::FIELD_ALLOW_DUPLICATE_REGISTRANTS}->value);
}