On this page
public function DrupalKernel::updateModules
public DrupalKernel::updateModules(array $module_list, array $module_filenames = array())
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 735
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();
}
}
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!DrupalKernel.php/function/DrupalKernel::updateModules/8.1.x