Commit 8be1747d authored by catch's avatar catch
Browse files

fix: #3572785...

fix: #3572785 \Drupal\system\Controller\ThemeController::willInstallExperimentalTheme() prevents code from reaching the theme was not found errors

By: alexpott
(cherry picked from commit 00727647)
parent 3f19f9d3
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -170,6 +170,9 @@ public function install(Request $request) {
   */
  protected function willInstallExperimentalTheme($theme) {
    $all_themes = $this->themeList->getList();
    if (!isset($all_themes[$theme])) {
      return FALSE;
    }
    $dependencies = array_keys($all_themes[$theme]->requires);
    $themes_to_enable = array_merge([$theme], $dependencies);