You are here

public function FormModeManagerInterface::filterInactiveDisplay in Form mode manager 8.2

Filter form mode collection depending activation in bundle.

The getStorage() onto 'entity_form_display' can't be played , in specific cases eg: entityTypeAlter because that cause an, endless loop caused by Annotation::reset during instantiation of plugin.

Parameters

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

string $entity_type_id: The entity type ID of entity.

Return value

array The collection filtered without usage of storage.

1 method overrides FormModeManagerInterface::filterInactiveDisplay()
FormModeManager::filterInactiveDisplay in src/FormModeManager.php
Filter form mode collection depending activation in bundle.

File

src/FormModeManagerInterface.php, line 113

Class

FormModeManagerInterface
Interface FormModeManagerInterface.

Namespace

Drupal\form_mode_manager

Code

public function filterInactiveDisplay(array &$form_mode, $entity_type_id);