Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ComponentGenerator.php

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\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;
}
RSS feed
Powered by Drupal