You are here

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

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

Get associated identity.

Return value

\Drupal\Core\Entity\EntityInterface|NULL An entity, or NULL if the identity does not exist.

Overrides RegistrantInterface::getIdentity

File

src/Entity/Registrant.php, line 68

Class

Registrant
Defines the registrant entity class.

Namespace

Drupal\rng\Entity

Code

public function getIdentity() {
  return $this
    ->get('identity')->entity;
}