AdminNegotiator::determineActiveTheme

public AdminNegotiator::determineActiveTheme(RouteMatchInterface $route_match)

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/user/src/Theme/AdminNegotiator.php, line 74

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');
}
doc_Drupal
2016-10-29 08:43:44
Comments
Leave a Comment

Please login to continue.