protected function FormModeManager::formModeIsExcluded in Form mode manager 8.2
Same name and namespace in other branches
- 8 src/FormModeManager.php \Drupal\form_mode_manager\FormModeManager::formModeIsExcluded()
Constructs a FormDisplayManager object.
Parameters
array $form_modes_to_exclude: Entity type manager service.
string $form_mode_id: Identifier of form mode prefixed by entity type id.
Return value
bool Determine if current form mode is excluded by configuration.
1 call to FormModeManager::formModeIsExcluded()
- FormModeManager::candidateToExclude in src/
FormModeManager.php - Evaluate if current form_mode is candidate to be filtered or not.
File
- src/
FormModeManager.php, line 210
Class
- FormModeManager
- FormDisplayManager service.
Namespace
Drupal\form_mode_managerCode
protected function formModeIsExcluded(array $form_modes_to_exclude, $form_mode_id) {
return !empty($form_modes_to_exclude) && in_array($form_mode_id, $form_modes_to_exclude[0]['to_exclude']);
}