diff --git a/core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php b/core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php index d48cdae6d5..fd296f3e4f 100644 --- a/core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php +++ b/core/lib/Drupal/Core/Extension/ThemeInstallerInterface.php @@ -41,12 +41,13 @@ public function install(array $theme_list, $install_dependencies = TRUE); * 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. + * * @param array $theme_list * The themes to uninstall. * - * @throws \Drupal\Core\Extension\Exception\UnknownExtensionException - * Thrown when trying to uninstall a theme that was not installed. - * * @throws \InvalidArgumentException * Thrown when trying to uninstall the admin theme, the default theme or * a theme that another theme depends on.