ThemeHandler::getExtensionDiscovery

protected ThemeHandler::getExtensionDiscovery() Returns an extension discovery object. Return value \Drupal\Core\Extension\ExtensionDiscovery The extension discovery object. File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 421 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code protected function getExtensionDiscovery() { if (!isset($this->extensionDiscovery)) { $this->extensionDisc

ThemeHandler::getThemeDirectories

public ThemeHandler::getThemeDirectories() Returns an array of directories for all installed themes. Useful for tasks such as finding a file that exists in all theme directories. Return value array Overrides ThemeHandlerInterface::getThemeDirectories File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 459 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code public function getThemeDirectories() {

ThemeHandler::getTheme

public ThemeHandler::getTheme($name) Returns a theme extension object from the currently active theme list. Parameters string $name: The name of the theme to return. Return value \Drupal\Core\Extension\Extension An extension object. Throws \InvalidArgumentException Thrown when the requested theme does not exist. Overrides ThemeHandlerInterface::getTheme File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 478 Class ThemeHandler Default theme handler using the config system to stor

ThemeHandler::getName

public ThemeHandler::getName($theme) Gets the human readable name of a given theme. Parameters string $theme: The machine name of the theme which title should be shown. Return value string Returns the human readable name of the theme. Overrides ThemeHandlerInterface::getName File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 431 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code public function

ThemeHandler::getDefault

public ThemeHandler::getDefault() Returns the default theme. Return value string The default theme. Overrides ThemeHandlerInterface::getDefault File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 140 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code public function getDefault() { return $this->configFactory->get('system.theme')->get('default'); }

ThemeHandler::$routeBuilder

The route builder to rebuild the routes if a theme is installed. Type: \Drupal\Core\Routing\RouteBuilderInterface File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 82 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code protected $routeBuilder;

ThemeHandler::getBaseThemes

public ThemeHandler::getBaseThemes(array $themes, $theme) Finds all the base themes for the specified theme. Themes can inherit templates and function implementations from earlier themes. Parameters \Drupal\Core\Extension\Extension[] $themes: An array of available themes. string $theme: The name of the theme whose base we are looking for. Return value array Returns an array of all of the theme's ancestors; the first element's value will be NULL if an error occurred. Overrides ThemeHandlerInte

ThemeHandler::addTheme

public ThemeHandler::addTheme(Extension $theme) Adds a theme extension to the internal listing. Parameters \Drupal\Core\Extension\Extension $theme: The theme extension. Overrides ThemeHandlerInterface::addTheme File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 200 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code public function addTheme(Extension $theme) { if (!empty($theme->info['librar

ThemeHandler::doGetBaseThemes

protected ThemeHandler::doGetBaseThemes(array $themes, $theme, $used_themes = array()) Finds the base themes for the specific theme. Parameters array $themes: An array of available themes. string $theme: The name of the theme whose base we are looking for. array $used_themes: (optional) A recursion parameter preventing endless loops. Defaults to an empty array. Return value array An array of base themes. File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 385 Class ThemeHandler De

ThemeHandler::$root

The app root. Type: string File core/lib/Drupal/Core/Extension/ThemeHandler.php, line 110 Class ThemeHandler Default theme handler using the config system to store installation statuses. Namespace Drupal\Core\Extension Code protected $root;