function RecipeRunner::processInstall

Same name and namespace in other branches
  1. 10 core/lib/Drupal/Core/Recipe/RecipeRunner.php \Drupal\Core\Recipe\RecipeRunner::processInstall()

Installs the extensions.

Parameters

\Drupal\Core\Recipe\InstallConfigurator $install: The list of extensions to install.

\Drupal\Core\Config\StorageInterface $recipeConfigStorage: The recipe's configuration storage. Used to override extension provided configuration.

1 call to RecipeRunner::processInstall()
RecipeRunner::processRecipe in core/lib/Drupal/Core/Recipe/RecipeRunner.php

File

core/lib/Drupal/Core/Recipe/RecipeRunner.php, line 78

Class

RecipeRunner
Applies a recipe.

Namespace

Drupal\Core\Recipe

Code

protected static function processInstall(InstallConfigurator $install, StorageInterface $recipeConfigStorage) : void {
    foreach ($install->modules as $name) {
        static::installModule($name, $recipeConfigStorage);
    }
    // Themes can depend on modules so have to be installed after modules.
    foreach ($install->themes as $name) {
        static::installTheme($name, $recipeConfigStorage);
    }
}

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