Skip to content
Snippets Groups Projects
Commit 1dccf5f0 authored by catch's avatar catch
Browse files

Issue #3121024 by jungle: Remove todo in ThemeInstaller::uninstall() or...

Issue #3121024 by jungle:  Remove todo in ThemeInstaller::uninstall() or refactor to share logic with module installer
parent f3069ccf
No related branches found
No related tags found
No related merge requests found
......@@ -266,9 +266,6 @@ public function uninstall(array $theme_list) {
}
// 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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment