Issue #3121024 by jungle: Remove todo in ThemeInstaller::uninstall() or refactor to share logic with module installer

merge-requests/2419/head
catch 2020-03-20 12:30:11 +00:00
parent f3069ccf1f
commit 1dccf5f0ee
1 changed files with 0 additions and 3 deletions

View File

@ -266,9 +266,6 @@ class ThemeInstaller implements ThemeInstallerInterface {
}
// Base themes cannot be uninstalled if sub themes are installed, and if
// they are not uninstalled at the same time.
// @todo https://www.drupal.org/node/474684 and
// https://www.drupal.org/node/1297856 themes should leverage the module
// dependency system.
if (!empty($list[$key]->sub_themes)) {
foreach ($list[$key]->sub_themes as $sub_key => $sub_label) {
if (isset($list[$sub_key]) && !in_array($sub_key, $theme_list, TRUE)) {