public function Registrant::setEvent in RNG - Events and Registrations 3.x
@inheritDoc
Overrides RegistrantInterface::setEvent
File
- src/
Entity/ Registrant.php, line 256
Class
- Registrant
- Defines the registrant entity class.
Namespace
Drupal\rng\EntityCode
public function setEvent(ContentEntityInterface $event) {
$this
->set('event', [
'entity' => $event,
]);
return $this;
}