function DrupalKernelInterface::updateModules

Same name in other branches
  1. 9 core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::updateModules()
  2. 8.9.x core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::updateModules()
  3. 11.x core/lib/Drupal/Core/DrupalKernelInterface.php \Drupal\Core\DrupalKernelInterface::updateModules()

Updates the kernel's list of modules to the new list.

The kernel needs to update its bundle list and container to match the new list.

Parameters

array $module_list: The new list of modules.

array $module_filenames: List of module filenames, keyed by module name.

1 method overrides DrupalKernelInterface::updateModules()
DrupalKernel::updateModules in core/lib/Drupal/Core/DrupalKernel.php
Implements Drupal\Core\DrupalKernelInterface::updateModules().

File

core/lib/Drupal/Core/DrupalKernelInterface.php, line 116

Class

DrupalKernelInterface
The interface for DrupalKernel, the core of Drupal.

Namespace

Drupal\Core

Code

public function updateModules(array $module_list, array $module_filenames = []);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.