Skip to content
Snippets Groups Projects
Verified Commit 2cf5bf32 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
parent 139bf729
No related branches found
No related tags found
No related merge requests found
......@@ -359,6 +359,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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment