You are here

public function HighPriorityThemeNegotiator::determineActiveTheme in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 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 Returns the active theme name, else return NULL.

Overrides ThemeNegotiatorInterface::determineActiveTheme

File

core/modules/system/tests/modules/theme_test/src/Theme/HighPriorityThemeNegotiator.php, line 28
Contains \Drupal\theme_test\Theme\HighPriorityThemeNegotiator.

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';
}