function _install_module_batch

Same name in other branches
  1. 7.x includes/install.core.inc \_install_module_batch()
  2. 9 core/includes/install.core.inc \_install_module_batch()
  3. 8.9.x core/includes/install.core.inc \_install_module_batch()
  4. 10 core/includes/install.core.inc \_install_module_batch()

Implements callback_batch_operation().

Performs batch installation of modules.

2 string references to '_install_module_batch'
install_profile_modules in core/includes/install.core.inc
Installs required modules via a batch process.
install_recipe_required_modules in core/includes/install.core.inc
Installs required modules prior to applying a recipe via the installer.

File

core/includes/install.core.inc, line 1915

Code

function _install_module_batch($module, $module_name, &$context) {
    \Drupal::service('module_installer')->install([
        $module,
    ], FALSE);
    $context['results'][] = $module;
    $context['message'] = t('Installed %module module.', [
        '%module' => $module_name,
    ]);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.