public function DrupalKernel::updateModules in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/DrupalKernel.php \Drupal\Core\DrupalKernel::updateModules()
Implements Drupal\Core\DrupalKernelInterface::updateModules().
@todo Remove obsolete $module_list parameter. Only $module_filenames is needed.
Overrides DrupalKernelInterface::updateModules
File
- core/
lib/ Drupal/ Core/ DrupalKernel.php, line 744 - Contains \Drupal\Core\DrupalKernel.
Class
- DrupalKernel
- The DrupalKernel class is the core of Drupal itself.
Namespace
Drupal\CoreCode
public function updateModules(array $module_list, array $module_filenames = array()) {
$this->moduleList = $module_list;
foreach ($module_filenames as $name => $extension) {
$this->moduleData[$name] = $extension;
}
// If we haven't yet booted, we don't need to do anything: the new module
// list will take effect when boot() is called. However we set a
// flag that the container needs a rebuild, so that a potentially cached
// container is not used. If we have already booted, then rebuild the
// container in order to refresh the serviceProvider list and container.
$this->containerNeedsRebuild = TRUE;
if ($this->booted) {
$this
->initializeContainer();
}
}