Issue #3070747 by immaculatexavier, herved, alexpott, yoruvo: Profile paths are not updated after moving them to other directories

merge-requests/2612/head
catch 2022-06-28 21:17:21 +01:00
parent e17e5f01ec
commit e9a1ea2ace
1 changed files with 3 additions and 1 deletions

View File

@ -489,7 +489,9 @@ function drupal_flush_all_caches($kernel = NULL) {
// Wipe the Twig PHP Storage cache.
\Drupal::service('twig')->invalidate();
// Rebuild theme data that is stored in state.
// Rebuild profile, profile, theme_engine and theme data.
\Drupal::service('extension.list.profile')->reset();
\Drupal::service('extension.list.theme_engine')->reset();
\Drupal::service('theme_handler')->refreshInfo();
// In case the active theme gets requested later in the same request we need
// to reset the theme manager.