public function ThemeNegotiator::determineActiveTheme in Gin Login 8
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match:
Return value
null|string
Overrides ThemeNegotiatorInterface::determineActiveTheme
File
- src/
Theme/ ThemeNegotiator.php, line 36
Class
- ThemeNegotiator
- Contains \Drupal\gin_login\Theme\ThemeNegotiator Credit to jimconte https://jimconte.com/blog/web/dynamic-theme-switching-in-drupal-8.
Namespace
Drupal\gin_login\ThemeCode
public function determineActiveTheme(RouteMatchInterface $route_match) {
return $this
->negotiateRoute($route_match) ?: NULL;
}