Verified Commit d1b82290 authored by Théodore Biadala's avatar Théodore Biadala
Browse files

Issue #3460598 by catch, m4olivei, penyaskito, finnsky: Single directory...

Issue #3460598 by catch, m4olivei, penyaskito, finnsky: Single directory component CSS asset library not picked up in admin theme immediately after module install without cache clear

(cherry picked from commit 2cf5bf32)
parent 35ee84ae
Loading
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -348,6 +348,11 @@ public function install(array $module_list, $enable_dependencies = TRUE) {
        // @see https://www.drupal.org/node/2208429
        \Drupal::service('theme_handler')->refreshInfo();

        // Modules may provide single directory components which are added to
        // the core library definitions rather than the module itself, this
        // requires the library discovery cache to be rebuilt.
        \Drupal::service('library.discovery')->clearCachedDefinitions();

        // Allow the module to perform install tasks.
        $this->moduleHandler->invoke($module, 'install', [$sync_status]);