public function Engine::determineTheme in ThemeKey 8
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 EngineInterface::determineTheme
File
- src/Engine/ Engine.php, line 62 
Class
Namespace
Drupal\themekey\EngineCode
public function determineTheme(RouteMatchInterface $route_match) {
  $this->routeMatch = $route_match;
  #var_dump($route_match);
  $ruleChainManager = $this
    ->getRuleChainManager();
  $chain = $ruleChainManager
    ->getOptimizedChain();
  return $chain ? $this
    ->walkRuleChildren($chain) : NULL;
}