public function RegistrationInterface::setEvent in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 3.x src/Entity/RegistrationInterface.php \Drupal\rng\Entity\RegistrationInterface::setEvent()
Set associated event.
Parameters
\Drupal\Core\Entity\ContentEntityInterface $entity: An entity that has an associated event.
Return value
\Drupal\rng\Entity\RegistrationInterface Returns registration for chaining.
1 method overrides RegistrationInterface::setEvent()
- Registration::setEvent in src/
Entity/ Registration.php - Set associated event.
File
- src/
Entity/ RegistrationInterface.php, line 58
Class
- RegistrationInterface
- Provides an interface defining a Registration entity.
Namespace
Drupal\rng\EntityCode
public function setEvent(ContentEntityInterface $entity);