function ThemeHandler::listInfo
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/ThemeHandler.php \Drupal\Core\Extension\ThemeHandler::listInfo()
- 10 core/lib/Drupal/Core/Extension/ThemeHandler.php \Drupal\Core\Extension\ThemeHandler::listInfo()
- 11.x core/lib/Drupal/Core/Extension/ThemeHandler.php \Drupal\Core\Extension\ThemeHandler::listInfo()
Overrides ThemeHandlerInterface::listInfo
5 calls to ThemeHandler::listInfo()
- ThemeHandler::getTheme in core/
lib/ Drupal/ Core/ Extension/ ThemeHandler.php - Returns a theme extension object from the currently active theme list.
- ThemeHandler::getThemeDirectories in core/
lib/ Drupal/ Core/ Extension/ ThemeHandler.php - Returns an array of directories for all installed themes.
- ThemeHandler::hasUi in core/
lib/ Drupal/ Core/ Extension/ ThemeHandler.php - Determines if a theme should be shown in the user interface.
- ThemeHandler::setDefault in core/
lib/ Drupal/ Core/ Extension/ ThemeHandler.php - Sets a new default theme.
- ThemeHandler::themeExists in core/
lib/ Drupal/ Core/ Extension/ ThemeHandler.php - Determines whether a given theme is installed.
File
-
core/
lib/ Drupal/ Core/ Extension/ ThemeHandler.php, line 103
Class
- ThemeHandler
- Default theme handler using the config system to store installation statuses.
Namespace
Drupal\Core\ExtensionCode
public function listInfo() {
if (!isset($this->list)) {
$this->list = [];
$installed_themes = $this->configFactory
->get('core.extension')
->get('theme');
if (!empty($installed_themes)) {
$installed_themes = array_intersect_key($this->themeList
->getList(), $installed_themes);
array_map([
$this,
'addTheme',
], $installed_themes);
}
}
return $this->list;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.