You are here

public function WebformThemeNegotiator::determineActiveTheme in Webform 6.x

Same name and namespace in other branches
  1. 8.5 src/Theme/WebformThemeNegotiator.php \Drupal\webform\Theme\WebformThemeNegotiator::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/WebformThemeNegotiator.php, line 64

Class

WebformThemeNegotiator
Sets the admin theme on a webform that does not have a public canonical URL.

Namespace

Drupal\webform\Theme

Code

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