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

Breadcrumb

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

function 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

1 call to Composer::composerSubprojectPaths()
Composer::setTemplateProjectStability in composer/Composer.php
Set the stability of the template projects to match the Drupal version.

File

composer/Composer.php, line 126

Class

Composer
Provides static functions for composer script events.

Namespace

Drupal\Composer

Code

public static function composerSubprojectPaths(string $root, string $subprojectType) : Finder {
    return Finder::create()->files()
        ->name('composer.json')
        ->in("{$root}/composer/{$subprojectType}");
}
RSS feed
Powered by Drupal