public function Registration::getRegistrants in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Entity/Registration.php \Drupal\rng\Entity\Registration::getRegistrants()
- 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\EntityCode
public function getRegistrants() {
return \Drupal::entityTypeManager()
->getStorage('registrant')
->loadMultiple($this
->getRegistrantIds());
}