function RecipeConfigurator::listAllRecipes
Same name in other branches
- 10 core/lib/Drupal/Core/Recipe/RecipeConfigurator.php \Drupal\Core\Recipe\RecipeConfigurator::listAllRecipes()
Returns all the recipes installed by this recipe.
Return value
\Drupal\Core\Recipe\Recipe[] An array of all the recipes being installed.
1 call to RecipeConfigurator::listAllRecipes()
- RecipeConfigurator::listAllExtensions in core/
lib/ Drupal/ Core/ Recipe/ RecipeConfigurator.php - List all the extensions installed by this recipe and its dependencies.
File
-
core/
lib/ Drupal/ Core/ Recipe/ RecipeConfigurator.php, line 82
Class
- RecipeConfigurator
- @internal This API is experimental.
Namespace
Drupal\Core\RecipeCode
private function listAllRecipes() : array {
$recipes = [];
foreach ($this->recipes as $recipe) {
$recipes[] = $recipe;
$recipes = array_merge($recipes, $recipe->recipes
->listAllRecipes());
}
return array_values(array_unique($recipes, SORT_REGULAR));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.