function 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 126
Class
- Composer
- Provides static functions for composer script events.
Namespace
Drupal\ComposerCode
public static function composerSubprojectPaths(string $root, string $subprojectType) : Finder {
return Finder::create()->files()
->name('composer.json')
->in("{$root}/composer/{$subprojectType}");
}