public ModuleInstallerInterface::install(array $module_list, $enable_dependencies = TRUE)
Installs a given list of modules.
Order of events:
To install test modules add
$settings['extension_discovery_scan_tests'] = TRUE;
to your settings.php.
string[] $module_list: An array of module names.
bool $enable_dependencies: (optional) If TRUE, dependencies will automatically be installed in the correct order. This incurs a significant performance cost, so use FALSE if you know $module_list is already complete.
bool TRUE if the modules were successfully installed.
\Drupal\Core\Extension\MissingDependencyException Thrown when a requested module, or a dependency of one, can not be found.
public function install(array $module_list, $enable_dependencies = TRUE);
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Extension!ModuleInstallerInterface.php/function/ModuleInstallerInterface::install/8.1.x