public function ThemeCacheContext::__construct
public ThemeCacheContext::__construct(ThemeManagerInterface $theme_manager)
Constructs a new ThemeCacheContext service.
Parameters
\Drupal\Core\Theme\ThemeManagerInterface $theme_manager: The theme manager.
File
- core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php, line 28
Class
- ThemeCacheContext
- Defines the ThemeCacheContext service, for "per theme" caching.
Namespace
Drupal\Core\Cache\ContextCode
public function __construct(ThemeManagerInterface $theme_manager) { $this->themeManager = $theme_manager; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Cache!Context!ThemeCacheContext.php/function/ThemeCacheContext::__construct/8.1.x