ThemeHandler::systemListReset

protected ThemeHandler::systemListReset() Wraps system_list_reset(). File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 442 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code protected function systemListReset() { system_list_reset(); }

ThemeHandler::reset

public ThemeHandler::reset() Resets the internal state of the theme handler. Overrides ThemeHandlerInterface::reset File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 237 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code public function reset() { $this->systemListReset(); $this->list = NULL; }

ThemeHandler::themeExists

public ThemeHandler::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. Overrides ThemeHandlerInterface::themeExists File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 470 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code public function themeExists(

ThemeHandler::systemThemeList

protected ThemeHandler::systemThemeList() Wraps system_list(). Return value array A list of themes keyed by name. File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 452 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code protected function systemThemeList() { return system_list('theme'); }

ThemeHandler::setDefault

public ThemeHandler::setDefault($name) Sets a new default theme. Parameters string $theme: The new default theme. Return value $this Overrides ThemeHandlerInterface::setDefault File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 147 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code public function setDefault($name) { $list = $this->listInfo(); if (!isset($list[$name])) { throw new \I

ThemeHandler::rebuildThemeData

public ThemeHandler::rebuildThemeData() Scans and collects theme extension data and their engines. Return value \Drupal\Core\Extension\Extension[] An associative array of theme extensions. Overrides ThemeHandlerInterface::rebuildThemeData File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 245 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code public function rebuildThemeData() { $listing = $th

ThemeHandler::hasUi

public ThemeHandler::hasUi($name) Determines if a theme should be shown in the user interface. To be shown in the UI the theme has to be installed. If the theme is hidden it will not be shown unless it is the default or admin theme. Parameters string $name: The name of the theme to check. Return value bool TRUE if the theme should be shown in the UI, FALSE if not. Overrides ThemeHandlerInterface::hasUi File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 489 Class ThemeHandler Defa

ThemeHandler::refreshInfo

public ThemeHandler::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. Overrides ThemeHandlerInterface::refreshInfo File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 218 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code public function refreshInfo() { $this->

ThemeHandler::install

public ThemeHandler::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 \Drupal\Co

ThemeHandler::listInfo

public ThemeHandler::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 dimensio