You are here

public function FormModeManager::getFormModeExcluded in Form mode manager 8.2

Same name and namespace in other branches
  1. 8 src/FormModeManager.php \Drupal\form_mode_manager\FormModeManager::getFormModeExcluded()

Retrieve the list of form_modes unavailable to expose by Form Mode Manager.

Parameters

string $entity_type_id: The entity type ID of entity.

Return value

array[] The list of form modes to exclude.

Overrides FormModeManagerInterface::getFormModeExcluded

1 call to FormModeManager::getFormModeExcluded()
FormModeManager::candidateToExclude in src/FormModeManager.php
Evaluate if current form_mode is candidate to be filtered or not.

File

src/FormModeManager.php, line 218

Class

FormModeManager
FormDisplayManager service.

Namespace

Drupal\form_mode_manager

Code

public function getFormModeExcluded($entity_type_id) {
  $form_modes = [];
  if (isset($this->formModesExcluded[$entity_type_id])) {
    $form_modes = $this->formModesExcluded[$entity_type_id];
  }
  return $form_modes;
}