public function Registration::getEvent in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Entity/Registration.php \Drupal\rng\Entity\Registration::getEvent()
- 3.x src/Entity/Registration.php \Drupal\rng\Entity\Registration::getEvent()
Get associated event.
Return value
\Drupal\Core\Entity\ContentEntityInterface|NULL An entity, or NULL if the event does not exist.
Overrides RegistrationInterface::getEvent
3 calls to Registration::getEvent()
- Registration::addGroup in src/
Entity/ Registration.php - Add a group to the registration.
- Registration::postSave in src/
Entity/ Registration.php - Acts on a saved entity before the insert or update hook is invoked.
- Registration::preSave in src/
Entity/ Registration.php - Acts on an entity before the presave hook is invoked.
File
- src/
Entity/ Registration.php, line 72
Class
- Registration
- Defines the registration entity class.
Namespace
Drupal\rng\EntityCode
public function getEvent() {
return $this
->get('event')->entity;
}