You are here

public function StyleguideThemeNegotiator::determineActiveTheme in Style Guide 8

Same name and namespace in other branches
  1. 2.x src/Theme/StyleguideThemeNegotiator.php \Drupal\styleguide\Theme\StyleguideThemeNegotiator::determineActiveTheme()

Determine the active theme for the request.

Parameters

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

Return value

string|null Returns the active theme name, else return NULL.

Overrides ThemeNegotiatorInterface::determineActiveTheme

File

src/Theme/StyleguideThemeNegotiator.php, line 90

Class

StyleguideThemeNegotiator
The Styleguide Theme Negotiator.

Namespace

Drupal\styleguide\Theme

Code

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