public function Registrant::setRegistration in RNG - Events and Registrations 8
Same name and namespace in other branches
- 8.2 src/Entity/Registrant.php \Drupal\rng\Entity\Registrant::setRegistration()
- 3.x src/Entity/Registrant.php \Drupal\rng\Entity\Registrant::setRegistration()
Set associated registration.
Parameters
\Drupal\rng\RegistrationInterface $registration: The new associated registration.
Return value
\Drupal\rng\RegistrantInterface Returns registrant for chaining.
Overrides RegistrantInterface::setRegistration
File
- src/
Entity/ Registrant.php, line 60
Class
- Registrant
- Defines the registrant entity class.
Namespace
Drupal\rng\EntityCode
public function setRegistration(RegistrationInterface $registration) {
$this
->set('registration', [
'entity' => $registration,
]);
return $this;
}