public function CustomThemeNegotiator::determineActiveTheme in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/theme_test/src/Theme/CustomThemeNegotiator.php \Drupal\theme_test\Theme\CustomThemeNegotiator::determineActiveTheme()
Determine the active theme for the request.
Parameters
\Drupal\Core\Routing\RouteMatchInterface $route_match: The current route match object.
Return value
string|null Returns the active theme name, else return NULL.
Overrides ThemeNegotiatorInterface::determineActiveTheme
File
- core/
modules/ system/ tests/ modules/ theme_test/ src/ Theme/ CustomThemeNegotiator.php, line 29 - Contains \Drupal\theme_test\Theme\CustomThemeNegotiator.
Class
- CustomThemeNegotiator
- Just forces the 'test_theme' theme.
Namespace
Drupal\theme_test\ThemeCode
public function determineActiveTheme(RouteMatchInterface $route_match) {
return $route_match
->getRouteObject()
->getOption('_custom_theme');
}