public function AdminNegotiator::determineActiveTheme in Drupal 10
Same name and namespace in other branches
- 8 core/modules/user/src/Theme/AdminNegotiator.php \Drupal\user\Theme\AdminNegotiator::determineActiveTheme()
- 9 core/modules/user/src/Theme/AdminNegotiator.php \Drupal\user\Theme\AdminNegotiator::determineActiveTheme()
File
- core/
modules/ user/ src/ Theme/ AdminNegotiator.php, line 74
Class
- AdminNegotiator
- Sets the active theme on admin pages.
Namespace
Drupal\user\ThemeCode
public function determineActiveTheme(RouteMatchInterface $route_match) {
return $this->configFactory
->get('system.theme')
->get('admin') ?: NULL;
}