public function WebformThemeNegotiator::determineActiveTheme in Webform 8.5
Same name and namespace in other branches
- 6.x 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 65
Class
- WebformThemeNegotiator
- Sets the admin theme on a webform that does not have a public canonical URL.
Namespace
Drupal\webform\ThemeCode
public function determineActiveTheme(RouteMatchInterface $route_match) {
return $this
->getActiveTheme($route_match);
}