You are here

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

Get 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.

Return value

string The form display mode used when the identity is created inline.

Overrides EventTypeInterface::getIdentityTypeEntityFormMode

File

src/Entity/RngEventType.php, line 267

Class

RngEventType
Defines the event type entity.

Namespace

Drupal\rng\Entity

Code

public function getIdentityTypeEntityFormMode($entity_type, $bundle) {
  $key = $this
    ->getIdentityTypeKey($entity_type, $bundle);
  return !empty($this->people_types[$key]['entity_form_mode']) ? $this->people_types[$key]['entity_form_mode'] : 'default';
}