You are here

public function HighPriorityThemeNegotiator::determineActiveTheme in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/theme_test/src/Theme/HighPriorityThemeNegotiator.php \Drupal\theme_test\Theme\HighPriorityThemeNegotiator::determineActiveTheme()
  2. 10 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\Theme

Code

public function determineActiveTheme(RouteMatchInterface $route_match) {
  return 'classy';
}