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

Breadcrumb

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

function Handler::getFileMappingsFromPackages

Gets a consolidated list of file mappings from all allowed packages.

Parameters

\Composer\Package\PackageInterface[] $allowed_packages: A multidimensional array of file mappings, as returned by self::getAllowedPackages().

Return value

\Drupal\Composer\Plugin\Scaffold\Operations\OperationInterface[][] An array of destination paths => scaffold operation objects.

1 call to Handler::getFileMappingsFromPackages()
Handler::scaffold in composer/Plugin/Scaffold/Handler.php
Copies all scaffold files from source to destination.

File

composer/Plugin/Scaffold/Handler.php, line 206

Class

Handler
Core class of the plugin.

Namespace

Drupal\Composer\Plugin\Scaffold

Code

protected function getFileMappingsFromPackages(array $allowed_packages) {
    $file_mappings = [];
    foreach ($allowed_packages as $package_name => $package) {
        $file_mappings[$package_name] = $this->getPackageFileMappings($package);
    }
    return $file_mappings;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal