public function TwigExtension::setThemeManager in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Template/TwigExtension.php \Drupal\Core\Template\TwigExtension::setThemeManager()
Sets the theme manager.
Parameters
\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.
Return value
$this
File
- core/
lib/ Drupal/ Core/ Template/ TwigExtension.php, line 108 - Contains \Drupal\Core\Template\TwigExtension.
Class
- TwigExtension
- A class providing Drupal Twig extensions.
Namespace
Drupal\Core\TemplateCode
public function setThemeManager(ThemeManagerInterface $theme_manager) {
$this->themeManager = $theme_manager;
return $this;
}