You are here

public static function Composer::composerSubprojectPaths in Drupal 10

Same name and namespace in other branches
  1. 9 composer/Composer.php \Drupal\Composer\Composer::composerSubprojectPaths()

Return the list of subprojects of a given type.

Parameters

string $root: Path to root of drupal/drupal repository.

string $subprojectType: Type of subproject - one of Metapackage, Plugin, or Template

Return value

\Symfony\Component\Finder\Finder

1 call to Composer::composerSubprojectPaths()
Composer::setTemplateProjectStability in composer/Composer.php
Set the stability of the template projects to match the Drupal version.

File

composer/Composer.php, line 119

Class

Composer
Provides static functions for composer script events. See also core/lib/Drupal/Composer/Composer.php, which contains similar scripts needed by projects that include drupal/core. Scripts that are only needed by drupal/drupal go here.

Namespace

Drupal\Composer

Code

public static function composerSubprojectPaths(string $root, string $subprojectType) : Finder {
  return Finder::create()
    ->files()
    ->name('composer.json')
    ->in("{$root}/composer/{$subprojectType}");
}