You are here

public function RoleThemeSwitcherNegotiator::determineActiveTheme in Role Theme Switcher 8

Determine the active theme for the request.

Parameters

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

Return value

string The name of the theme

Overrides ThemeNegotiatorInterface::determineActiveTheme

File

src/Theme/RoleThemeSwitcherNegotiator.php, line 102

Class

RoleThemeSwitcherNegotiator
Class RoleThemeSwitcherNegotiator.

Namespace

Drupal\role_theme_switcher\Theme

Code

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