public function ModuleHandler::setModuleList

Implements \Drupal\Core\Extension\ModuleHandlerInterface::setModuleList().

Overrides ModuleHandlerInterface::setModuleList

2 calls to ModuleHandler::setModuleList()
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/lib/Drupal/Core/Extension/ModuleHandler.php, line 155
Contains Drupal\Core\Extension\ModuleHandler.

Class

ModuleHandler
Class that manages enabled modules in a Drupal installation.

Namespace

Drupal\Core\Extension

Code

public function setModuleList(array $module_list = array()) {
  $this->moduleList = $module_list;

  // Reset the implementations, so a new call triggers a reloading of the
  // available hooks.
  $this
    ->resetImplementations();
}