public function Registration::getRegistrantIds in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Entity/Registration.php \Drupal\rng\Entity\Registration::getRegistrantIds()
- 3.x src/Entity/Registration.php \Drupal\rng\Entity\Registration::getRegistrantIds()
Get registrants IDs for the registration.
Return value
integer[] An array of registrant IDs.
Overrides RegistrationInterface::getRegistrantIds
1 call to Registration::getRegistrantIds()
- Registration::getRegistrants in src/
Entity/ Registration.php - Get registrants for the registration.
File
- src/
Entity/ Registration.php, line 116
Class
- Registration
- Defines the registration entity class.
Namespace
Drupal\rng\EntityCode
public function getRegistrantIds() {
return $this->registrant_ids = \Drupal::entityQuery('registrant')
->condition('registration', $this
->id(), '=')
->execute();
}