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

Breadcrumb

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

function ArchiveManager::buildExcludePatterns

Parameters

string[] $parts:

string[] $formats:

Return value

string[]

1 call to ArchiveManager::buildExcludePatterns()
ArchiveManager::archive in vendor/composer/composer/src/Composer/Package/Archiver/ArchiveManager.php
Create an archive of the specified package.

File

vendor/composer/composer/src/Composer/Package/Archiver/ArchiveManager.php, line 246

Class

ArchiveManager
@author Matthieu Moquet <matthieu@moquet.net> @author Till Klampaeckel <till@php.net>

Namespace

Composer\Package\Archiver

Code

private function buildExcludePatterns(array $parts, array $formats) : array {
    $base = $parts['base'];
    if (count($parts) > 1) {
        $base .= '-*';
    }
    $patterns = [];
    foreach ($formats as $format) {
        $patterns[] = "{$base}.{$format}";
    }
    return $patterns;
}

API Navigation

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