You are here

public function AdminNegotiator::determineActiveTheme in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/user/src/Theme/AdminNegotiator.php \Drupal\user\Theme\AdminNegotiator::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/user/src/Theme/AdminNegotiator.php, line 77
Contains \Drupal\user\Theme\AdminNegotiator.

Class

AdminNegotiator
Sets the active theme on admin pages.

Namespace

Drupal\user\Theme

Code

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