You are here

public function EventType::getIdentityTypeEntityFormMode in RNG - Events and Registrations 8

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/EventType.php, line 212

Class

EventType
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']);
}