You are here

public function Registrant::getRegistration in RNG - Events and Registrations 8

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

Get associated registration.

Return value

\Drupal\rng\RegistrationInterface|NULL The parent registration, or NULL if it does not exist.

Overrides RegistrantInterface::getRegistration

File

src/Entity/Registrant.php, line 53

Class

Registrant
Defines the registrant entity class.

Namespace

Drupal\rng\Entity

Code

public function getRegistration() {
  return $this
    ->get('registration')->entity;
}