You are here

public function EventType::canIdentityTypeReference in RNG - Events and Registrations 8

Whether an existing identity type can be referenced.

Parameters

string $entity_type: The identity entity type ID.

string $bundle: The identity bundle.

Return value

boolean Whether an existing identity type can be referenced.

Overrides EventTypeInterface::canIdentityTypeReference

File

src/Entity/EventType.php, line 246

Class

EventType
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']);
}