system_rebuild_module_data
function system_rebuild_module_data
system_rebuild_module_data()
Rebuild, save, and return data about all currently available modules.
Return value
\Drupal\Core\Extension\Extension[] Array of all available modules and their data.
File
- core/modules/system/system.module, line 1067
- Configuration system that lets administrators modify the workings of the site.
Code
function system_rebuild_module_data() { $modules_cache = &drupal_static(__FUNCTION__); // Only rebuild once per request. $modules and $modules_cache cannot be // combined into one variable, because the $modules_cache v