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

public ThemeHandlerInterface::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 File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 179 Class ThemeHandlerInterface Manages the list of available themes. Namespace Drupal\Core\Extension Code public function getThemeDirectories();

ThemeHandlerInterface::getTheme

public ThemeHandlerInterface::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. File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 204 Class ThemeHandlerInterface Manages the list of available themes. Namespace Drupal\Core\Exten

ThemeHandlerInterface::getName

public ThemeHandlerInterface::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. File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 151 Class ThemeHandlerInterface Manages the list of available themes. Namespace Drupal\Core\Extension Code public function getName($theme);

ThemeHandlerInterface::getDefault

public ThemeHandlerInterface::getDefault() Returns the default theme. Return value string The default theme. File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 159 Class ThemeHandlerInterface Manages the list of available themes. Namespace Drupal\Core\Extension Code public function getDefault();

ThemeHandlerInterface::getBaseThemes

public ThemeHandlerInterface::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. File core/lib/Dru

ThemeHandlerInterface::addTheme

public ThemeHandlerInterface::addTheme(Extension $theme) Adds a theme extension to the internal listing. Parameters \Drupal\Core\Extension\Extension $theme: The theme extension. File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 102 Class ThemeHandlerInterface Manages the list of available themes. Namespace Drupal\Core\Extension Code public function addTheme(Extension $theme);

ThemeHandlerInterface

Manages the list of available themes. Hierarchy interface \Drupal\Core\Extension\ThemeHandlerInterface File core/lib/Drupal/Core/Extension/ThemeHandlerInterface.php, line 8 Namespace Drupal\Core\Extension Members Name Modifiers Type Description ThemeHandlerInterface::addTheme public function Adds a theme extension to the internal listing. ThemeHandlerInterface::getBaseThemes public function Finds all the base themes for the specified theme. ThemeHandlerInterfac

ThemeHandler::__construct

public ThemeHandler::__construct($root, ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler, StateInterface $state, InfoParserInterface $info_parser, ExtensionDiscovery $extension_discovery = NULL) Constructs a new ThemeHandler. Parameters string $root: The app root. \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory to get the installed themes. \Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler to fire theme

ThemeHandler::uninstall

public ThemeHandler::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. Overrides ThemeHandlerInterface::uninstall Deprecated in Drupal 8.0.x-dev and will be removed before Drupal 9.0.0. Use the theme_installer service instead. See