public function EventType::setIdentityTypeReference in RNG - Events and Registrations 8
Set whether existing identity type can be referenced.
Parameters
string $entity_type: The identity entity type ID.
string $bundle: The identity bundle.
boolean $enabled: Whether existing identity type can be referenced.
Return value
$this Return this event type for chaining.
Overrides EventTypeInterface::setIdentityTypeReference
File
- src/
Entity/ EventType.php, line 254
Class
- EventType
- Defines the event type entity.
Namespace
Drupal\rng\EntityCode
public function setIdentityTypeReference($entity_type, $bundle, $enabled) {
$key = $this
->getIdentityTypeKey($entity_type, $bundle);
$this->people_types[$key]['existing'] = $enabled;
return $this;
}