function drush_module_install

8.0.x environment.inc drush_module_install($module_list, $enable_dependencies = TRUE)
7.x environment.inc drush_module_install($module_list, $enable_dependencies = TRUE)
master environment.inc drush_module_install($module_list, $enable_dependencies = TRUE)

Installs a given list of modules.

See also

\Drupal\Core\Extension\ModuleInstallerInterface::install()

1 call to drush_module_install()
drush_module_enable in commands/core/drupal/environment.inc
Enable a list of modules. It is assumed the list contains all the dependencies not already enabled.

File

commands/core/drupal/environment.inc, line 130
Specific functions for a drupal 8+ environment. drush_include_engine() magically includes either this file or environment_X.inc depending on which version of drupal Drush is called from.

Code

function drush_module_install($module_list, $enable_dependencies = TRUE) {
  return \Drupal::service('module_installer')->install($module_list, $enable_dependencies);
}