public function DxprThemeSettingsThemeNegotiator::determineActiveTheme in DXPR Theme Helper 1.0.x
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/ DxprThemeSettingsThemeNegotiator.php, line 24
Class
- DxprThemeSettingsThemeNegotiator
- Forces theme settings forms to use the Theme that is being configured
Namespace
Drupal\dxpr_theme_helper\ThemeCode
public function determineActiveTheme(RouteMatchInterface $route_match) {
$current_theme = $route_match
->getParameter('theme');
return $current_theme;
}