public function FormModeManager::getFormModeExcluded in Form mode manager 8
Same name and namespace in other branches
- 8.2 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::filterExcludedFormModes in src/
FormModeManager.php - Filter a form mode collection to exclude all desired form mode id.
File
- src/
FormModeManager.php, line 200
Class
- FormModeManager
- FormDisplayManager service.
Namespace
Drupal\form_mode_managerCode
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;
}