public function HighPriorityThemeNegotiator::determineActiveTheme in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/theme_test/src/Theme/HighPriorityThemeNegotiator.php \Drupal\theme_test\Theme\HighPriorityThemeNegotiator::determineActiveTheme()
- 9 core/modules/system/tests/modules/theme_test/src/Theme/HighPriorityThemeNegotiator.php \Drupal\theme_test\Theme\HighPriorityThemeNegotiator::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
- core/
modules/ system/ tests/ modules/ theme_test/ src/ Theme/ HighPriorityThemeNegotiator.php, line 23
Class
- HighPriorityThemeNegotiator
- Implements a test theme negotiator which was configured with a high priority.
Namespace
Drupal\theme_test\ThemeCode
public function determineActiveTheme(RouteMatchInterface $route_match) {
return 'classy';
}