ThemeInitialization::$cache

The cache backend to use for the active theme. Type: \Drupal\Core\Cache\CacheBackendInterface File core/lib/Drupal/Core/Theme/ThemeInitialization.php, line 27 Class ThemeInitialization Provides the theme initialization logic. Namespace Drupal\Core\Theme Code protected $cache;

ThemeInitialization

Provides the theme initialization logic. Hierarchy class \Drupal\Core\Theme\ThemeInitialization implements ThemeInitializationInterface File core/lib/Drupal/Core/Theme/ThemeInitialization.php, line 13 Namespace Drupal\Core\Theme Members Name Modifiers Type Description ThemeInitialization::$cache protected property The cache backend to use for the active theme. ThemeInitialization::$extensions protected property The extensions that might be attaching assets. The

ThemeHandlerInterface::uninstall

public ThemeHandlerInterface::uninstall(array $theme_list) Uninstalls a given list of themes. Uninstalling a theme removes all related configuration (like blocks) and invokes the 'themes_uninstalled' hook. Parameters array $theme_list: The themes to uninstall. Throws \InvalidArgumentException Thrown when you uninstall an not installed theme. Deprecated in Drupal 8.0.x-dev and will be removed before Drupal 9.0.0. Use the theme_installer service instead. See also hook_themes_uninstalled() \

ThemeHandlerInterface::themeExists

public ThemeHandlerInterface::themeExists($theme) Determines whether a given theme is installed. Parameters string $theme: The name of the theme (without the .theme extension). Return value bool TRUE if the theme is installed. File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 190 Class ThemeHandlerInterface Manages the list of available themes. Namespace Drupal\Core\Extension Code public function themeExists($theme);

ThemeHandlerInterface::setDefault

public ThemeHandlerInterface::setDefault($theme) Sets a new default theme. Parameters string $theme: The new default theme. Return value $this File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 169 Class ThemeHandlerInterface Manages the list of available themes. Namespace Drupal\Core\Extension Code public function setDefault($theme);

ThemeHandlerInterface::reset

public ThemeHandlerInterface::reset() Resets the internal state of the theme handler. File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 115 Class ThemeHandlerInterface Manages the list of available themes. Namespace Drupal\Core\Extension Code public function reset();

ThemeHandlerInterface::refreshInfo

public ThemeHandlerInterface::refreshInfo() Refreshes the theme info data of currently installed themes. Modules can alter theme info, so this is typically called after a module has been installed or uninstalled. File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 110 Class ThemeHandlerInterface Manages the list of available themes. Namespace Drupal\Core\Extension Code public function refreshInfo();

ThemeHandlerInterface::rebuildThemeData

public ThemeHandlerInterface::rebuildThemeData() Scans and collects theme extension data and their engines. Return value \Drupal\Core\Extension\Extension[] An associative array of theme extensions. File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 123 Class ThemeHandlerInterface Manages the list of available themes. Namespace Drupal\Core\Extension Code public function rebuildThemeData();

ThemeHandlerInterface::listInfo

public ThemeHandlerInterface::listInfo() Returns a list of currently installed themes. Return value \Drupal\Core\Extension\Extension[] An associative array of the currently installed themes. The keys are the themes' machine names and the values are objects having the following properties: filename: The filepath and name of the .info.yml file. name: The machine name of the theme. status: 1 for installed, 0 for uninstalled themes. info: The contents of the .info.yml file. stylesheets: A two

ThemeHandlerInterface::install

public ThemeHandlerInterface::install(array $theme_list, $install_dependencies = TRUE) Installs a given list of themes. Parameters array $theme_list: An array of theme names. bool $install_dependencies: (optional) If TRUE, dependencies will automatically be installed in the correct order. This incurs a significant performance cost, so use FALSE if you know $theme_list is already complete and in the correct order. Return value bool Whether any of the given themes have been installed. Throws \