public function Registrant::clearIdentity in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 src/Entity/Registrant.php \Drupal\rng\Entity\Registrant::clearIdentity()
- 8 src/Entity/Registrant.php \Drupal\rng\Entity\Registrant::clearIdentity()
Removes identity associated with this registrant.
Return value
\Drupal\rng\Entity\RegistrantInterface Returns registrant for chaining.
Overrides RegistrantInterface::clearIdentity
File
- src/
Entity/ Registrant.php, line 96
Class
- Registrant
- Defines the registrant entity class.
Namespace
Drupal\rng\EntityCode
public function clearIdentity() {
$this->identity
->setValue(NULL);
return $this;
}