public function EventMeta::registrationTypeIsValid in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 src/EventMeta.php \Drupal\rng\EventMeta::registrationTypeIsValid()
- 3.x src/EventMeta.php \Drupal\rng\EventMeta::registrationTypeIsValid()
Checks if a registration type is allowed to be used on an event.
Parameters
\Drupal\rng\Entity\RegistrationTypeInterface: A registration type entity.
Return value
bool Whether the registration type can be used.
Overrides EventMetaInterface::registrationTypeIsValid
File
- src/
EventMeta.php, line 191
Class
- EventMeta
- Meta event wrapper for RNG.
Namespace
Drupal\rngCode
public function registrationTypeIsValid(RegistrationTypeInterface $registration_type) {
return in_array($registration_type
->id(), $this
->getRegistrationTypeIds());
}