You are here

public function ThemeNegotiator::determineActiveTheme in Dashboards with Layout Builder 2.0.x

Same name and namespace in other branches
  1. 8 src/Theme/ThemeNegotiator.php \Drupal\dashboards\Theme\ThemeNegotiator::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

src/Theme/ThemeNegotiator.php, line 79

Class

ThemeNegotiator
Dashboard theme negotiator.

Namespace

Drupal\dashboards\Theme

Code

public function determineActiveTheme(RouteMatchInterface $route_match) {
  return $this->config
    ->get('system.theme')
    ->get('admin');
}