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(); }
Please login to continue.