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.
array $theme_list: The themes to uninstall.
\InvalidArgumentException Thrown when you uninstall an not installed theme.
Overrides ThemeHandlerInterface::uninstall
in Drupal 8.0.x-dev and will be removed before Drupal 9.0.0. Use the theme_installer service instead.
\Drupal\Core\Extension\ThemeInstallerInterface::uninstall
public function uninstall(array $theme_list) { // We keep the old uninstall() method as BC layer but redirect directly to // the theme installer. \Drupal::service('theme_installer')->uninstall($theme_list); }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Extension!ThemeHandler.php/function/ThemeHandler::uninstall/8.1.x