public function LibrariesOnInit::modulesEnabled in X Autoload 7.5
React to xautoload_modules_enabled()
Parameters
string[] $modules: New module names.
Overrides PhaseObserverInterface::modulesEnabled
File
- src/
Libraries/ LibrariesOnInit.php, line 76
Class
- LibrariesOnInit
- Registers autoload mappings from all libraries on hook_init(), or after the first cache miss.
Namespace
Drupal\xautoload\LibrariesCode
public function modulesEnabled($modules) {
$this->system
->drupalStaticReset('libraries_info');
$this->system
->cacheClearAll(XAUTOLOAD_CACHENAME_LIBRARIES_INFO, 'cache');
$this
->registerLibrariesFinderPlugin();
}