public static function Composer::composerSubprojectPaths in Drupal 9
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
3 calls to Composer::composerSubprojectPaths()
- Composer::setTemplateProjectStability in composer/
Composer.php - Set the stability of the template projects to match the Drupal version.
- ComposerProjectTemplatesTest::getPathReposForType in core/
tests/ Drupal/ BuildTests/ Composer/ Template/ ComposerProjectTemplatesTest.php - Get Composer items that we want to be path repos, from within a directory.
- ComposerProjectTemplatesTest::testVerifyTemplateTestProviderIsAccurate in core/
tests/ Drupal/ BuildTests/ Composer/ Template/ ComposerProjectTemplatesTest.php - Make sure we've accounted for all the templates.
File
- composer/
Composer.php, line 118
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\ComposerCode
public static function composerSubprojectPaths(string $root, string $subprojectType) : Finder {
return Finder::create()
->files()
->name('composer.json')
->in("{$root}/composer/{$subprojectType}");
}