You are here

public function EventType::setIdentityTypeCreate in RNG - Events and Registrations 8

Set whether an identity type can be created.

Parameters

string $entity_type: The identity entity type ID.

string $bundle: The identity bundle.

boolean $enabled: Whether the identity type can be created.

Return value

$this Return this event type for chaining.

Overrides EventTypeInterface::setIdentityTypeCreate

File

src/Entity/EventType.php, line 203

Class

EventType
Defines the event type entity.

Namespace

Drupal\rng\Entity

Code

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