function RecipeRunner::installConfig
Same name in other branches
- 10 core/lib/Drupal/Core/Recipe/RecipeRunner.php \Drupal\Core\Recipe\RecipeRunner::installConfig()
Installs a config for a recipe.
Parameters
\Drupal\Core\Recipe\Recipe $recipe: The recipe to install config for.
array<mixed>|null $context: The batch context if called by a batch.
File
-
core/
lib/ Drupal/ Core/ Recipe/ RecipeRunner.php, line 306
Class
- RecipeRunner
- Applies a recipe.
Namespace
Drupal\Core\RecipeCode
public static function installConfig(Recipe $recipe, ?array &$context = NULL) : void {
static::processConfiguration($recipe);
$context['message'] = t('Installed configuration for %recipe recipe.', [
'%recipe' => $recipe->name,
]);
$context['results']['config'][] = $recipe->name;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.