You are here

public function Registrant::clearIdentity in RNG - Events and Registrations 8

Same name and namespace in other branches
  1. 8.2 src/Entity/Registrant.php \Drupal\rng\Entity\Registrant::clearIdentity()
  2. 3.x src/Entity/Registrant.php \Drupal\rng\Entity\Registrant::clearIdentity()

Removes identity associated with this registrant.

Return value

\Drupal\rng\RegistrantInterface Returns registrant for chaining.

Overrides RegistrantInterface::clearIdentity

File

src/Entity/Registrant.php, line 93

Class

Registrant
Defines the registrant entity class.

Namespace

Drupal\rng\Entity

Code

public function clearIdentity() {
  $this->identity
    ->setValue(NULL);
  return $this;
}