You are here

public function EventMeta::getRegistrationTypes in RNG - Events and Registrations 8

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

Gets a list of registration types allowed for this event.

Return value

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

Overrides EventMetaInterface::getRegistrationTypes

File

src/EventMeta.php, line 158

Class

EventMeta
Meta event wrapper for RNG.

Namespace

Drupal\rng

Code

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