You are here

public function RngEventType::setIdentityTypeCreate in RNG - Events and Registrations 8.2

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

Set whether an identity type can be created.

Parameters

string $entity_type: The identity entity type ID.

string $bundle: The identity bundle.

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

Return value

$this Return this event type for chaining.

Overrides EventTypeInterface::setIdentityTypeCreate

File

src/Entity/RngEventType.php, line 258

Class

RngEventType
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;
}