You are here

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

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

Checks if a registrant is allowed to register on a wait list on this event.

Return value

bool Whether wait list registrations are allowed.

Overrides EventMetaInterface::allowWaitList

File

src/EventMeta.php, line 259

Class

EventMeta
Meta event wrapper for RNG.

Namespace

Drupal\rng

Code

public function allowWaitList() {
  return (bool) $this
    ->getEvent()->{EventManagerInterface::FIELD_WAIT_LIST}->value;
}