public function ModuleHandlerInterface::setModuleList in Service Container 7
Same name and namespace in other branches
- 7.2 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 src/
Extension/ ModuleHandler.php - Sets an explicit list of currently active modules.
File
- lib/
Drupal/ Core/ Extension/ ModuleHandlerInterface.php, line 81 - Contains \Drupal\Core\Extension\ModuleHandlerInterface.
Class
- ModuleHandlerInterface
- Interface for classes that manage a set of enabled modules.
Namespace
Drupal\Core\ExtensionCode
public function setModuleList(array $module_list = array());