function ComponentGenerator::getComponentPathsFinder

Same name and namespace in other branches
  1. 10 composer/Generator/ComponentGenerator.php \Drupal\Composer\Generator\ComponentGenerator::getComponentPathsFinder()
  2. 11.x composer/Generator/ComponentGenerator.php \Drupal\Composer\Generator\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\Generator

Code

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;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.