diff --git a/core/modules/system/system.install b/core/modules/system/system.install index 47f6dca..b32dfc5 100644 --- a/core/modules/system/system.install +++ b/core/modules/system/system.install @@ -1808,5 +1808,18 @@ function system_update_8011() { } /** + * Install the Stable base theme if needed. + */ +function system_update_8012() { + $theme_handler = \Drupal::service('theme_handler'); + foreach ($theme_handler->listInfo() as $theme) { + if (isset($theme->info['base theme']) && $theme->info['base theme'] == 'stable') { + $theme_handler->install(['stable']); + return; + } + } +} + +/** * @} End of "addtogroup updates-8.0.0-beta". */