ThemeInitialization::prepareStylesheetsRemove

protected ThemeInitialization::prepareStylesheetsRemove(Extension $theme, $base_themes) Prepares stylesheets-remove specified in the *.info.yml file. @todo Remove in Drupal 9.0.x. Parameters \Drupal\Core\Extension\Extension $theme: The theme extension object. \Drupal\Core\Extension\Extension[] $base_themes: An array of base themes. Return value string[] The list of stylesheets-remove specified in the *.info.yml file. File core/lib/Drupal/Core/Theme/ThemeInitialization.php, line 309 Class

ThemeInitializationInterface

Defines an interface which contain theme initialization logic. Hierarchy interface \Drupal\Core\Theme\ThemeInitializationInterface File core/lib/Drupal/Core/Theme/ThemeInitializationInterface.php, line 9 Namespace Drupal\Core\Theme Members Name Modifiers Type Description ThemeInitializationInterface::getActiveTheme public function Builds up the active theme object from extensions. ThemeInitializationInterface::getActiveThemeByName public function Builds an active

ThemeInitialization::getExtensions

protected ThemeInitialization::getExtensions() Gets all extensions. Return value array File core/lib/Drupal/Core/Theme/ThemeInitialization.php, line 263 Class ThemeInitialization Provides the theme initialization logic. Namespace Drupal\Core\Theme Code protected function getExtensions() { if (!isset($this->extensions)) { $this->extensions = array_merge($this->moduleHandler->getModuleList(), $this->themeHandler->listInfo()); } return $this->extensions; }

ThemeInitialization::initTheme

public ThemeInitialization::initTheme($theme_name) Initializes a given theme. This loads the active theme, for example include its engine file. Parameters string $theme_name: The machine name of the theme. Return value \Drupal\Core\Theme\ActiveTheme An active theme object instance for the given theme. Overrides ThemeInitializationInterface::initTheme File core/lib/Drupal/Core/Theme/ThemeInitialization.php, line 65 Class ThemeInitialization Provides the theme initialization logic. Names

ThemeInitialization::getActiveThemeByName

public ThemeInitialization::getActiveThemeByName($theme_name) Builds an active theme object. Parameters string $theme_name: The machine name of the theme. Return value \Drupal\Core\Theme\ActiveTheme An active theme object instance for the given theme. Throws \Drupal\Core\Theme\MissingThemeDependencyException Thrown when base theme for installed theme is not installed. Overrides ThemeInitializationInterface::getActiveThemeByName File core/lib/Drupal/Core/Theme/ThemeInitialization.php, line 75

ThemeInitialization::loadActiveTheme

public ThemeInitialization::loadActiveTheme(ActiveTheme $active_theme) Loads a theme, so it is ready to be used. Loading a theme includes loading and initializing the engine, each base theme and its engines. Parameters \Drupal\Core\Theme\ActiveTheme $active_theme: The theme to load. Overrides ThemeInitializationInterface::loadActiveTheme File core/lib/Drupal/Core/Theme/ThemeInitialization.php, line 129 Class ThemeInitialization Provides the theme initialization logic. Namespace Drupal\

ThemeInitialization::$themeHandler

The theme handler. Type: \Drupal\Core\Extension\ThemeHandlerInterface File core/lib/Drupal/Core/Theme/ThemeInitialization.php, line 20 Class ThemeInitialization Provides the theme initialization logic. Namespace Drupal\Core\Theme Code protected $themeHandler;

ThemeInitialization::$root

The app root. Type: string File core/lib/Drupal/Core/Theme/ThemeInitialization.php, line 34 Class ThemeInitialization Provides the theme initialization logic. Namespace Drupal\Core\Theme Code protected $root;

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