public function ThemeSwitchNegotiator::determineActiveTheme in Domain Theme Switch 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/ ThemeSwitchNegotiator.php, line 124
Class
- ThemeSwitchNegotiator
- Implements ThemeNegotiatorInterface.
Namespace
Drupal\domain_theme_switch\ThemeCode
public function determineActiveTheme(RouteMatchInterface $route_match) {
return $this
->isAdminRouteUrl($route_match) === FALSE ? $this->defaultTheme : $this->adminTheme;
}