You are here

public function FormModeThemeNegociator::isCustomTheme in Form mode manager 8.2

Evaluate if the theme type needed by settings is specific theme.

Parameters

string $theme_type: The kind of theme needed by route or configuration 'admin' or 'default'.

Return value

bool True if the theme type from settings is set to "Specific theme".

1 call to FormModeThemeNegociator::isCustomTheme()
FormModeThemeNegociator::determineActiveTheme in modules/form_mode_theme_switcher/src/Theme/FormModeThemeNegociator.php
Determine the active theme from the route or configuration.

File

modules/form_mode_theme_switcher/src/Theme/FormModeThemeNegociator.php, line 164

Class

FormModeThemeNegociator
Class FormModeThemeNegociator.

Namespace

Drupal\form_mode_manager_theme_switcher\Theme

Code

public function isCustomTheme($theme_type) {
  return isset($theme_type) && $theme_type === '_custom';
}