public function DrupalKernel::updateModules

Implements Drupal\Core\DrupalKernelInterface::updateModules().

Overrides DrupalKernelInterface::updateModules

File

drupal/core/lib/Drupal/Core/DrupalKernel.php, line 226
Definition of Drupal\Core\DrupalKernel.

Class

DrupalKernel
The DrupalKernel class is the core of Drupal itself.

Namespace

Drupal\Core

Code

public function updateModules(array $module_list, array $module_filenames = array()) {
  $this->newModuleList = $module_list;
  foreach ($module_filenames as $module => $filename) {
    $this->moduleData[$module] = (object) array(
      'uri' => $filename,
    );
  }

  // If we haven't yet booted, we don't need to do anything: the new module
  // list will take effect when boot() is called. If we have already booted,
  // then reboot in order to refresh the bundle list and container.
  if ($this->booted) {
    $this->booted = FALSE;
    $this
      ->boot();
  }
}