public function RegistrationInterface::setEvent in RNG - Events and Registrations 8
Set associated event.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity:
Return value
\Drupal\rng\RegistrationInterface Returns registration for chaining.
1 method overrides RegistrationInterface::setEvent()
- Registration::setEvent in src/
Entity/ Registration.php - Set associated event.
File
- src/
RegistrationInterface.php, line 48
Class
- RegistrationInterface
- Provides an interface defining a Registration entity.
Namespace
Drupal\rngCode
public function setEvent(ContentEntityInterface $entity);