You are here

public function Registrant::getIdentity in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/Registrant.php \Drupal\rng\Entity\Registrant::getIdentity()
  2. 8 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

2 calls to Registrant::getIdentity()
Registrant::label in src/Entity/Registrant.php
Gets the label of the entity.
Registrant::preSave in src/Entity/Registrant.php
If a value is set on the identity and blank on the registrant, copy values from identity to registrant, and vice-versa.

File

src/Entity/Registrant.php, line 71

Class

Registrant
Defines the registrant entity class.

Namespace

Drupal\rng\Entity

Code

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