function ModuleHandlerInterface::setModuleList

Same name in other branches
  1. 9 core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::setModuleList()
  2. 10 core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::setModuleList()
  3. 11.x core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php \Drupal\Core\Extension\ModuleHandlerInterface::setModuleList()

Sets an explicit list of currently active modules.

Parameters

\Drupal\Core\Extension\Extension[] $module_list: An associative array whose keys are the names of the modules and whose values are Extension objects.

1 method overrides ModuleHandlerInterface::setModuleList()
ModuleHandler::setModuleList in core/lib/Drupal/Core/Extension/ModuleHandler.php
Sets an explicit list of currently active modules.

File

core/lib/Drupal/Core/Extension/ModuleHandlerInterface.php, line 76

Class

ModuleHandlerInterface
Interface for classes that manage a set of enabled modules.

Namespace

Drupal\Core\Extension

Code

public function setModuleList(array $module_list = []);

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