function TwigExtension::setThemeManager
Sets the theme manager.
Parameters
\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.
Return value
$this
Deprecated
in drupal:8.3.0 and is removed from drupal:9.0.0.
File
-
core/
lib/ Drupal/ Core/ Template/ TwigExtension.php, line 114
Class
- TwigExtension
- A class providing Drupal Twig extensions.
Namespace
Drupal\Core\TemplateCode
public function setThemeManager(ThemeManagerInterface $theme_manager) {
$this->themeManager = $theme_manager;
return $this;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.