function ThemeInstallerInterface::uninstall
Same name in other branches
- 9 core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php \Drupal\Core\Extension\ThemeInstallerInterface::uninstall()
- 8.9.x core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php \Drupal\Core\Extension\ThemeInstallerInterface::uninstall()
- 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.
Themes are allowed to be uninstalled even when their code has been removed from the filesystem, this is because themes do not allow uninstall hooks to be defined.
Parameters
array $theme_list: The themes to uninstall.
Throws
\InvalidArgumentException Thrown when trying to uninstall the admin theme, the default theme or a theme that another theme depends on.
See also
File
-
core/
lib/ Drupal/ Core/ Extension/ ThemeInstallerInterface.php, line 57
Class
- ThemeInstallerInterface
- Manages theme installation/uninstallation.
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.