public function Registrant::getIdentity in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 8 src/Entity/Registrant.php \Drupal\rng\Entity\Registrant::getIdentity()
- 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
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 69
Class
- Registrant
- Defines the registrant entity class.
Namespace
Drupal\rng\EntityCode
public function getIdentity() {
return $this
->get('identity')->entity;
}