public function RngEventType::setIdentityTypeReference in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 3.x src/Entity/RngEventType.php \Drupal\rng\Entity\RngEventType::setIdentityTypeReference()
Set whether existing identity type can be referenced.
Parameters
string $entity_type: The identity entity type ID.
string $bundle: The identity bundle.
bool $enabled: Whether existing identity type can be referenced.
Return value
$this Return this event type for chaining.
Overrides EventTypeInterface::setIdentityTypeReference
File
- src/
Entity/ RngEventType.php, line 309
Class
- RngEventType
- 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;
}