You are here

public function RegistrationInterface::setEvent in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 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\Entity

Code

public function setEvent(ContentEntityInterface $entity);