function CustomThemeNegotiator::determineActiveTheme
Same name in other branches
- 8.9.x core/modules/system/tests/modules/theme_test/src/Theme/CustomThemeNegotiator.php \Drupal\theme_test\Theme\CustomThemeNegotiator::determineActiveTheme()
- 10 core/modules/system/tests/modules/theme_test/src/Theme/CustomThemeNegotiator.php \Drupal\theme_test\Theme\CustomThemeNegotiator::determineActiveTheme()
- 11.x core/modules/system/tests/modules/theme_test/src/Theme/CustomThemeNegotiator.php \Drupal\theme_test\Theme\CustomThemeNegotiator::determineActiveTheme()
Overrides ThemeNegotiatorInterface::determineActiveTheme
File
-
core/
modules/ system/ tests/ modules/ theme_test/ src/ Theme/ CustomThemeNegotiator.php, line 24
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');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.