ThemeManager::getActiveTheme

public ThemeManager::getActiveTheme(RouteMatchInterface $route_match = NULL)

Returns the active theme object.

Return value

\Drupal\Core\Theme\ActiveTheme

Overrides ThemeManagerInterface::getActiveTheme

File

core/lib/Drupal/Core/Theme/ThemeManager.php, line 94

Class

ThemeManager
Provides the default implementation of a theme manager.

Namespace

Drupal\Core\Theme

Code

public function getActiveTheme(RouteMatchInterface $route_match = NULL) {
  if (!isset($this->activeTheme)) {
    $this->initTheme($route_match);
  }
  return $this->activeTheme;
}
doc_Drupal
2016-10-29 09:48:14
Comments
Leave a Comment

Please login to continue.