You are here

public function RngEventType::setIdentityTypeEntityFormMode 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::setIdentityTypeEntityFormMode()

Set the form display mode used when the identity is created inline.

Parameters

string $entity_type: The identity entity type ID.

string $bundle: The identity bundle.

string $form_mode: The form mode ID.

Return value

$this Return this event type for chaining.

Overrides EventTypeInterface::setIdentityTypeEntityFormMode

File

src/Entity/RngEventType.php, line 292

Class

RngEventType
Defines the event type entity.

Namespace

Drupal\rng\Entity

Code

public function setIdentityTypeEntityFormMode($entity_type, $bundle, $form_mode) {
  $key = $this
    ->getIdentityTypeKey($entity_type, $bundle);
  $this->people_types[$key]['entity_form_mode'] = $form_mode;
  return $this;
}