You are here

public function DrupalModulesManager::enableModules in Configuration Management 7.3

File

src/Helpers/DrupalModulesManager.php, line 24

Class

DrupalModulesManager

Namespace

Configuration\Helpers

Code

public function enableModules($modules = array()) {
  if (empty($modules)) {
    $modules = $this->to_enable;
  }
  module_enable($modules, TRUE);
  return $modules;
}