ThemeInitialization::$extensions

The extensions that might be attaching assets. Type: array File core/lib/Drupal/Core/Theme/ThemeInitialization.php, line 41 Class ThemeInitialization Provides the theme initialization logic. Namespace Drupal\Core\Theme Code protected $extensions;

ThemeInitialization::getActiveTheme

public ThemeInitialization::getActiveTheme(Extension $theme, array $base_themes = []) Builds up the active theme object from extensions. Parameters \Drupal\Core\Extension\Extension $theme: The theme extension object. \Drupal\Core\Extension\Extension[] $base_themes: An array of extension objects of base theme and its bases. It is ordered by 'next parent first', meaning the top level of the chain will be first. Return value \Drupal\Core\Theme\ActiveTheme The active theme instance for the passed

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::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::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::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::hasUi

public ThemeHandlerInterface::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. File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 218 Class ThemeHandlerInterface Manages the list

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 \

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();