You are here

public function GlazedSettingsThemeNegotiator::determineActiveTheme in Glazed Theme Helper 8

Determine the active theme for the request.

Parameters

\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match object.

Return value

string|null The name of the theme, or NULL if other negotiators, like the configured default one, should be used instead.

Overrides ThemeNegotiatorInterface::determineActiveTheme

File

src/Theme/GlazedSettingsThemeNegotiator.php, line 24

Class

GlazedSettingsThemeNegotiator
Forces theme settings forms to use the Theme that is being configured

Namespace

Drupal\glazed_helper\Theme

Code

public function determineActiveTheme(RouteMatchInterface $route_match) {
  $current_theme = $route_match
    ->getParameter('theme');
  return $current_theme;
}