You are here

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

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

Get associated identity entity keys.

Return value

array|NULL An array with the keys entity_type and entity_id, or NULL if the identity does not exist.

Overrides RegistrantInterface::getIdentityId

1 call to Registrant::getIdentityId()
Registrant::hasIdentity in src/Entity/Registrant.php
Checks if the identity is the registrant.

File

src/Entity/Registrant.php, line 75

Class

Registrant
Defines the registrant entity class.

Namespace

Drupal\rng\Entity

Code

public function getIdentityId() {
  return array(
    'entity_type' => $this
      ->get('identity')->target_type,
    'entity_id' => $this
      ->get('identity')->target_id,
  );
}