You are here

public function CssEditorThemeNegotiator::determineActiveTheme in CSS Editor 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/CssEditorThemeNegotiator.php, line 22

Class

CssEditorThemeNegotiator

Namespace

Drupal\css_editor\Theme

Code

public function determineActiveTheme(RouteMatchInterface $route_match) {
  return $_REQUEST['theme'];
}