public function RoleNegotiator::determineActiveTheme in Role Based Theme Switcher 8
Same name and namespace in other branches
- 9.1.x src/Theme/RoleNegotiator.php \Drupal\role_based_theme_switcher\Theme\RoleNegotiator::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/ RoleNegotiator.php, line 121
Class
- RoleNegotiator
- Sets the active theme on admin pages.
Namespace
Drupal\role_based_theme_switcher\ThemeCode
public function determineActiveTheme(RouteMatchInterface $route_match) {
return $this->theme;
}