function ComponentGenerator::getComponentPathsFinder
Find all the composer.json files for components.
Return value
\Symfony\Component\Finder\Finder A Finder object with all the composer.json files for components.
File
-
composer/
Generator/ ComponentGenerator.php, line 60
Class
- ComponentGenerator
- Reconciles Drupal component dependencies with core.
Namespace
Drupal\Composer\GeneratorCode
public function getComponentPathsFinder() : Finder {
$composer_json_finder = new Finder();
$composer_json_finder->name('composer.json')
->in($this->componentBaseDir)
->ignoreUnreadableDirs()
->depth(1);
return $composer_json_finder;
}