ThemeHandler::$configFactory

The config factory to get the installed themes. Type: \Drupal\Core\Config\ConfigFactoryInterface File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 40 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code protected $configFactory;

ThemeHandler

Default theme handler using the config system to store installation statuses. Hierarchy class \Drupal\Core\Extension\ThemeHandler implements ThemeHandlerInterface File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 11 Namespace Drupal\Core\Extension Members Name Modifiers Type Description ThemeHandler::$configFactory protected property The config factory to get the installed themes. ThemeHandler::$configInstaller protected property The config installer to

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\Context Code public function __construct(ThemeManagerInterface $theme_manager) { $this->th

ThemeCacheContext::getLabel

public static ThemeCacheContext::getLabel() Returns the label of the cache context. Return value string The label of the cache context. Overrides CacheContextInterface::getLabel File core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php, line 35 Class ThemeCacheContext Defines the ThemeCacheContext service, for "per theme" caching. Namespace Drupal\Core\Cache\Context Code public static function getLabel() { return t('Theme'); }

ThemeCacheContext::getContext

public ThemeCacheContext::getContext() Returns the string representation of the cache context. A cache context service's name is used as a token (placeholder) cache key, and is then replaced with the string returned by this method. Return value string The string representation of the cache context. Overrides CacheContextInterface::getContext File core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php, line 42 Class ThemeCacheContext Defines the ThemeCacheContext service, for "per theme"

ThemeCacheContext::getCacheableMetadata

public ThemeCacheContext::getCacheableMetadata() Gets the cacheability metadata for the context. There are three valid cases for the returned CacheableMetadata object: An empty object means this can be optimized away safely. A max-age of 0 means that this context can never be optimized away. It will never bubble up and cache tags will not be used. Any non-zero max-age and cache tags will bubble up into the cache item if this is optimized away to allow for invalidation if the context value chang

ThemeCacheContext::$themeManager

The theme manager. Type: \Drupal\Core\Theme\ThemeManagerInterface File core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php, line 20 Class ThemeCacheContext Defines the ThemeCacheContext service, for "per theme" caching. Namespace Drupal\Core\Cache\Context Code protected $themeManager;

ThemeCacheContext

Defines the ThemeCacheContext service, for "per theme" caching. Cache context ID: 'theme'. Hierarchy class \Drupal\Core\Cache\Context\ThemeCacheContext implements CacheContextInterface File core/lib/Drupal/Core/Cache/Context/ThemeCacheContext.php, line 13 Namespace Drupal\Core\Cache\Context Members Name Modifiers Type Description ThemeCacheContext::$themeManager protected property The theme manager. ThemeCacheContext::getCacheableMetadata public function Gets the

ThemeAccessCheck::__construct

public ThemeAccessCheck::__construct(ThemeHandlerInterface $theme_handler) Constructs a \Drupal\Core\Theme\Registry object. Parameters \Drupal\Core\Extension\ThemeHandlerInterface $theme_handler: The theme handler. File core/lib/Drupal/Core/Theme/ThemeAccessCheck.php, line 27 Class ThemeAccessCheck Provides access checking for themes for routing and theme negotiation. Namespace Drupal\Core\Theme Code public function __construct(ThemeHandlerInterface $theme_handler) { $this->theme

ThemeAccessCheck::checkAccess

public ThemeAccessCheck::checkAccess($theme) Indicates whether the theme is accessible based on whether it is installed. Parameters string $theme: The name of a theme. Return value bool TRUE if the theme is installed, FALSE otherwise. File core/lib/Drupal/Core/Theme/ThemeAccessCheck.php, line 53 Class ThemeAccessCheck Provides access checking for themes for routing and theme negotiation. Namespace Drupal\Core\Theme Code public function checkAccess($theme) { $themes = $this->them