public function Registrant::getRegistration in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Entity/Registrant.php \Drupal\rng\Entity\Registrant::getRegistration()
- 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\EntityCode
public function getRegistration() {
return $this
->get('registration')->entity;
}