You are here

public function FormModeManagerInterface::filterExcludedFormModes in Form mode manager 8.2

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

Filter a form mode collection to exclude all desired form mode id.

Parameters

array $form_mode: A form mode collection to be filtered.

string $entity_type_id: The entity type ID of entity.

bool $ignore_excluded: Joker to determine if form modes to exclude list are used or ignored.

Return value

array The collection without uneeded form modes.

1 method overrides FormModeManagerInterface::filterExcludedFormModes()
FormModeManager::filterExcludedFormModes in src/FormModeManager.php
Filter a form mode collection to exclude all desired form mode id.

File

src/FormModeManagerInterface.php, line 96

Class

FormModeManagerInterface
Interface FormModeManagerInterface.

Namespace

Drupal\form_mode_manager

Code

public function filterExcludedFormModes(array &$form_mode, $entity_type_id, $ignore_excluded);