You are here

public function Registration::getRegistrantIds in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 8 src/Entity/Registration.php \Drupal\rng\Entity\Registration::getRegistrantIds()
  2. 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

5 calls to Registration::getRegistrantIds()
Registration::canAddRegistrants in src/Entity/Registration.php
@inheritDoc
Registration::createStubs in src/Entity/Registration.php
Registration::getRegistrants in src/Entity/Registration.php
Get registrants for the registration.
Registration::preSave in src/Entity/Registration.php
Acts on an entity before the presave hook is invoked.
Registration::setRegistrantQty in src/Entity/Registration.php
@inheritDoc

File

src/Entity/Registration.php, line 188

Class

Registration
Defines the registration entity class.

Namespace

Drupal\rng\Entity

Code

public function getRegistrantIds() {
  return $this->registrant_ids = \Drupal::entityQuery('registrant')
    ->condition('registration', $this
    ->id(), '=')
    ->execute();
}