function ThemeHandlerInterface::uninstall
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
\Drupal\Core\Extension\Exception\UninstalledExtensionException Thrown when you try to uninstall a theme that wasn't installed.
Deprecated
in drupal:8.0.0 and is removed from drupal:9.0.0. Use the theme_installer service instead.
See also
https://www.drupal.org/node/3017233
\Drupal\Core\Extension\ThemeInstallerInterface::uninstall()
1 method overrides ThemeHandlerInterface::uninstall()
- ThemeHandler::uninstall in core/
lib/ Drupal/ Core/ Extension/ ThemeHandler.php - Uninstalls a given list of themes.
File
-
core/
lib/ Drupal/ Core/ Extension/ ThemeHandlerInterface.php, line 53
Class
- ThemeHandlerInterface
- Manages the list of available themes.
Namespace
Drupal\Core\ExtensionCode
public function uninstall(array $theme_list);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.