You are here

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

Same name and namespace in other branches
  1. 8 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\Entity\RegistrationTypeInterface[] An array of registration_type entities.

Overrides EventMetaInterface::getRegistrationTypes

File

src/EventMeta.php, line 184

Class

EventMeta
Meta event wrapper for RNG.

Namespace

Drupal\rng

Code

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