You are here

public function ThemeSwitcherNegotiator::determineActiveTheme in Context 8

Same name and namespace in other branches
  1. 8.4 src/Theme/ThemeSwitcherNegotiator.php \Drupal\context\Theme\ThemeSwitcherNegotiator::determineActiveTheme()

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/ThemeSwitcherNegotiator.php, line 69

Class

ThemeSwitcherNegotiator
Context Theme Switcher Negotiator.

Namespace

Drupal\context\Theme

Code

public function determineActiveTheme(RouteMatchInterface $route_match) {
  return $this->theme;
}