public function RegistrationInterface::addIdentity in RNG - Events and Registrations 8
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\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/
RegistrationInterface.php, line 88
Class
- RegistrationInterface
- Provides an interface defining a Registration entity.
Namespace
Drupal\rngCode
public function addIdentity(EntityInterface $identity);