public function DefaultNegotiator::determineActiveTheme in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Theme/DefaultNegotiator.php \Drupal\Core\Theme\DefaultNegotiator::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/
lib/ Drupal/ Core/ Theme/ DefaultNegotiator.php, line 45 - Contains \Drupal\Core\Theme\DefaultNegotiator.
Class
- DefaultNegotiator
- Determines the default theme of the site.
Namespace
Drupal\Core\ThemeCode
public function determineActiveTheme(RouteMatchInterface $route_match) {
return $this->configFactory
->get('system.theme')
->get('default');
}