public function EventMeta::isAcceptingRegistrations in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 src/EventMeta.php \Drupal\rng\EventMeta::isAcceptingRegistrations()
- 3.x src/EventMeta.php \Drupal\rng\EventMeta::isAcceptingRegistrations()
Checks if this event is accepting new registrations.
This method only checks configuration. Instead you may want to check 'create' operation using entity_access.
Return value
bool Whether this event is accepting new registrations.
Overrides EventMetaInterface::isAcceptingRegistrations
File
- src/
EventMeta.php, line 154
Class
- EventMeta
- Meta event wrapper for RNG.
Namespace
Drupal\rngCode
public function isAcceptingRegistrations() {
return !empty($this
->getEvent()->{EventManagerInterface::FIELD_STATUS}->value);
}