function RecipeConfigurator::__construct

Same name in other branches
  1. 11.x core/lib/Drupal/Core/Recipe/RecipeConfigurator.php \Drupal\Core\Recipe\RecipeConfigurator::__construct()

Parameters

string[] $recipes: A list of recipes for a recipe to apply. The recipes will be applied in the order listed.

string $include_path: The recipe's include path.

File

core/lib/Drupal/Core/Recipe/RecipeConfigurator.php, line 25

Class

RecipeConfigurator
@internal This API is experimental.

Namespace

Drupal\Core\Recipe

Code

public function __construct(array $recipes, string $include_path) {
    $this->recipes = array_map(fn(string $name) => static::getIncludedRecipe($include_path, $name), $recipes);
}

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