function ThemeInstallerInterface::uninstall

Same name in other branches
  1. 9 core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php \Drupal\Core\Extension\ThemeInstallerInterface::uninstall()
  2. 10 core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php \Drupal\Core\Extension\ThemeInstallerInterface::uninstall()
  3. 11.x core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php \Drupal\Core\Extension\ThemeInstallerInterface::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\UnknownExtensionException Thrown when trying to uninstall a theme that was not installed.

\InvalidArgumentException Thrown when trying to uninstall the default theme or the admin theme.

See also

hook_themes_uninstalled()

1 method overrides ThemeInstallerInterface::uninstall()
ThemeInstaller::uninstall in core/lib/Drupal/Core/Extension/ThemeInstaller.php
Uninstalls a given list of themes.

File

core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php, line 51

Class

ThemeInstallerInterface
Manages theme installation/uninstallation.

Namespace

Drupal\Core\Extension

Code

public function uninstall(array $theme_list);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.