public function RngEventType::canIdentityTypeReference in RNG - Events and Registrations 3.x
Same name and namespace in other branches
- 8.2 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\EntityCode
public function canIdentityTypeReference($entity_type, $bundle) {
$key = $this
->getIdentityTypeKey($entity_type, $bundle);
return !empty($this->people_types[$key]['existing']);
}