public function EventType::canIdentityTypeCreate in RNG - Events and Registrations 8
Whether a identity type can be created.
Parameters
string $entity_type: The identity entity type ID.
string $bundle: The identity bundle.
Return value
boolean Whether a identity type can be created.
Overrides EventTypeInterface::canIdentityTypeCreate
File
- src/
Entity/ EventType.php, line 195
Class
- EventType
- Defines the event type entity.
Namespace
Drupal\rng\EntityCode
public function canIdentityTypeCreate($entity_type, $bundle) {
$key = $this
->getIdentityTypeKey($entity_type, $bundle);
return !empty($this->people_types[$key]['create']);
}