TwigExtension::getActiveTheme

public TwigExtension::getActiveTheme()

Gets the name of the active theme.

Return value

string The name of the active theme.

File

core/lib/Drupal/Core/Template/TwigExtension.php, line 296

Class

TwigExtension
A class providing Drupal Twig extensions.

Namespace

Drupal\Core\Template

Code

public function getActiveTheme() {
  return $this->themeManager->getActiveTheme()->getName();
}
doc_Drupal
2016-10-29 09:49:39
Comments
Leave a Comment

Please login to continue.