public function RegistrationInterface::addIdentity in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 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\EntityCode
public function addIdentity(EntityInterface $identity);