You are here

public function RngEventType::canIdentityTypeReference in RNG - Events and Registrations 8.2

Same name and namespace in other branches
  1. 3.x src/Entity/RngEventType.php \Drupal\rng\Entity\RngEventType::canIdentityTypeReference()

Whether an existing identity type can be referenced.

Parameters

string $entity_type: The identity entity type ID.

string $bundle: The identity bundle.

Return value

bool Whether an existing identity type can be referenced.

Overrides EventTypeInterface::canIdentityTypeReference

File

src/Entity/RngEventType.php, line 301

Class

RngEventType
Defines the event type entity.

Namespace

Drupal\rng\Entity

Code

public function canIdentityTypeReference($entity_type, $bundle) {
  $key = $this
    ->getIdentityTypeKey($entity_type, $bundle);
  return !empty($this->people_types[$key]['existing']);
}