function 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\Recipe

Code

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.