W3cubDocs

/Drupal 8

public function ThemeInstallerInterface::uninstall

public ThemeInstallerInterface::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.

See also

hook_themes_uninstalled()

File

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

Class

ThemeInstallerInterface
Manages theme installation/uninstallation.

Namespace

Drupal\Core\Extension

Code

public function uninstall(array $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!ThemeInstallerInterface.php/function/ThemeInstallerInterface::uninstall/8.1.x