You are here

public function Registrant::getRegistration in RNG - Events and Registrations 3.x

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

Get associated registration.

Return value

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

Overrides RegistrantInterface::getRegistration

2 calls to Registrant::getRegistration()
Registrant::label in src/Entity/Registrant.php
Gets the label of the entity.
Registrant::preSave in src/Entity/Registrant.php
If a value is set on the identity and blank on the registrant, copy values from identity to registrant, and vice-versa.

File

src/Entity/Registrant.php, line 56

Class

Registrant
Defines the registrant entity class.

Namespace

Drupal\rng\Entity

Code

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