TwigExtension::getActiveThemePath

public TwigExtension::getActiveThemePath()

Gets the path of the active theme.

Return value

string The path to the active theme.

File

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

Class

TwigExtension
A class providing Drupal Twig extensions.

Namespace

Drupal\Core\Template

Code

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

Please login to continue.