function _system_update_bootstrap_status

Refreshes the list of bootstrap modules.

This is called internally by module_enable/disable() to flag modules that implement hooks used during bootstrap, such as hook_watchdog(). These modules are loaded earlier to invoke the hooks.

3 calls to _system_update_bootstrap_status()
drupal_flush_all_caches in drupal/core/includes/common.inc
Flushes all persistent caches, resets all variables, and rebuilds all data structures.
ModuleHandler::disable in drupal/core/lib/Drupal/Core/Extension/ModuleHandler.php
Disables a given set of modules.
ModuleHandler::enable in drupal/core/lib/Drupal/Core/Extension/ModuleHandler.php
Enables or installs a given list of modules.

File

drupal/core/modules/system/system.module, line 2916
Configuration system that lets administrators modify the workings of the site.

Code

function _system_update_bootstrap_status() {
  $bootstrap_modules = array();
  foreach (bootstrap_hooks() as $hook) {
    foreach (module_implements($hook) as $module) {
      $bootstrap_modules[$module] = drupal_get_filename('module', $module);
    }
  }
  Drupal::state()
    ->set('system.module.bootstrap', $bootstrap_modules);
}