public function TwigExtension::getActiveThemePath in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Template/TwigExtension.php \Drupal\Core\Template\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 291
Class
- TwigExtension
- A class providing Drupal Twig extensions.
Namespace
Drupal\Core\TemplateCode
public function getActiveThemePath() {
return $this->themeManager
->getActiveTheme()
->getPath();
}