public function EventType::setIdentityTypeEntityFormMode in RNG - Events and Registrations 8
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/ EventType.php, line 237
Class
- EventType
- Defines the event type entity.
Namespace
Drupal\rng\EntityCode
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;
}