function Composer::composerSubprojectPaths
Same name in other branches
- 9 composer/Composer.php \Drupal\Composer\Composer::composerSubprojectPaths()
- 11.x 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
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 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}");
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.