You are here

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

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

Gets a list of registration types allowed for this event.

Return value

\Drupal\rng\Entity\RegistrationTypeInterface[] An array of registration_type entities.

Overrides EventMetaInterface::getRegistrationTypes

File

src/EventMeta.php, line 194

Class

EventMeta
Meta event wrapper for RNG.

Namespace

Drupal\rng

Code

public function getRegistrationTypes() {
  return $this->entityManager
    ->getStorage('registration_type')
    ->loadMultiple($this
    ->getRegistrationTypeIds());
}