Implements \Drupal\Core\Extension\ModuleHandlerInterface::setModuleList().
Overrides ModuleHandlerInterface::setModuleList
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();
}