You are here

public function Registrant::getIdentityId 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::getIdentityId()
  2. 8 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 78

Class

Registrant
Defines the registrant entity class.

Namespace

Drupal\rng\Entity

Code

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