You are here

public function RngEventType::canIdentityTypeCreate in RNG - Events and Registrations 3.x

Same name and namespace in other branches
  1. 8.2 src/Entity/RngEventType.php \Drupal\rng\Entity\RngEventType::canIdentityTypeCreate()

Whether a identity type can be created.

Parameters

string $entity_type: The identity entity type ID.

string $bundle: The identity bundle.

Return value

bool Whether a identity type can be created.

Overrides EventTypeInterface::canIdentityTypeCreate

File

src/Entity/RngEventType.php, line 250

Class

RngEventType
Defines the event type entity.

Namespace

Drupal\rng\Entity

Code

public function canIdentityTypeCreate($entity_type, $bundle) {
  $key = $this
    ->getIdentityTypeKey($entity_type, $bundle);
  return !empty($this->people_types[$key]['create']);
}