You are here

public function RegistrationInterface::addIdentity 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::addIdentity()

Shortcut to add a registrant entity.

Take care to ensure the identity is not already on the registration.

Parameters

\Drupal\Core\Entity\EntityInterface $identity: The identity to add.

Return value

\Drupal\rng\Entity\RegistrationInterface Returns registration for chaining.

1 method overrides RegistrationInterface::addIdentity()
Registration::addIdentity in src/Entity/Registration.php
Shortcut to add a registrant entity.

File

src/Entity/RegistrationInterface.php, line 197

Class

RegistrationInterface
Provides an interface defining a Registration entity.

Namespace

Drupal\rng\Entity

Code

public function addIdentity(EntityInterface $identity);