You are here

public function Registration::getRegistrants in RNG - Events and Registrations 8

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

Get registrants for the registration.

Return value

\Drupal\rng\RegistrantInterface[] An array of registrant entities.

Overrides RegistrationInterface::getRegistrants

1 call to Registration::getRegistrants()
Registration::hasIdentity in src/Entity/Registration.php
Searches registrants on this registration for an identity.

File

src/Entity/Registration.php, line 125

Class

Registration
Defines the registration entity class.

Namespace

Drupal\rng\Entity

Code

public function getRegistrants() {
  return \Drupal::entityTypeManager()
    ->getStorage('registrant')
    ->loadMultiple($this
    ->getRegistrantIds());
}