public function RngEventType::setIdentityTypeEntityFormMode in RNG - Events and Registrations 8.2
Same name and namespace in other branches
- 3.x 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\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;
}