You are here

public function ThemeNegotiatorInterface::determineActiveTheme in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Theme/ThemeNegotiatorInterface.php \Drupal\Core\Theme\ThemeNegotiatorInterface::determineActiveTheme()
  2. 9 core/lib/Drupal/Core/Theme/ThemeNegotiatorInterface.php \Drupal\Core\Theme\ThemeNegotiatorInterface::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.

5 methods override ThemeNegotiatorInterface::determineActiveTheme()
BatchNegotiator::determineActiveTheme in core/modules/system/src/Theme/BatchNegotiator.php
Determine the active theme for the request.
CustomThemeNegotiator::determineActiveTheme in core/modules/system/tests/modules/theme_test/src/Theme/CustomThemeNegotiator.php
Determine the active theme for the request.
DbUpdateNegotiator::determineActiveTheme in core/modules/system/src/Theme/DbUpdateNegotiator.php
Determine the active theme for the request.
HighPriorityThemeNegotiator::determineActiveTheme in core/modules/system/tests/modules/theme_test/src/Theme/HighPriorityThemeNegotiator.php
Determine the active theme for the request.
TestThemeNegotiator::determineActiveTheme in core/modules/system/tests/modules/menu_test/src/Theme/TestThemeNegotiator.php
Determine the active theme for the request.

File

core/lib/Drupal/Core/Theme/ThemeNegotiatorInterface.php, line 46

Class

ThemeNegotiatorInterface
Defines an interface for classes which determine the active theme.

Namespace

Drupal\Core\Theme

Code

public function determineActiveTheme(RouteMatchInterface $route_match);