function RecipeConfigurator::listAllExtensions
Same name in other branches
- 10 core/lib/Drupal/Core/Recipe/RecipeConfigurator.php \Drupal\Core\Recipe\RecipeConfigurator::listAllExtensions()
List all the extensions installed by this recipe and its dependencies.
Return value
string[] All the modules and themes that will be installed by the current recipe and all the recipes it depends on.
File
-
core/
lib/ Drupal/ Core/ Recipe/ RecipeConfigurator.php, line 88
Class
- RecipeConfigurator
- @internal This API is experimental.
Namespace
Drupal\Core\RecipeCode
public function listAllExtensions() : array {
$extensions = [];
foreach ($this->listAllRecipes() as $recipe) {
$extensions = array_merge($extensions, $recipe->install->modules, $recipe->install->themes);
}
return array_values(array_unique($extensions));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.