diff --git a/core/lib/Drupal/Core/Extension/ThemeHandler.php b/core/lib/Drupal/Core/Extension/ThemeHandler.php index 957417c..9f40fa4 100644 --- a/core/lib/Drupal/Core/Extension/ThemeHandler.php +++ b/core/lib/Drupal/Core/Extension/ThemeHandler.php @@ -172,6 +172,8 @@ public function setDefault($name) { * {@inheritdoc} */ public function install(array $theme_list, $install_dependencies = TRUE) { + // We keep the old install() method as BC layer but redirect directly to the + // theme installer. \Drupal::service('theme_installer')->install($theme_list, $install_dependencies); } @@ -179,6 +181,8 @@ public function install(array $theme_list, $install_dependencies = TRUE) { * {@inheritdoc} */ public function uninstall(array $theme_list) { + // We keep the old uninstall() method as BC layer but redirect directly to + // the theme installer. \Drupal::service('theme_installer')->uninstall($theme_list); }