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

Breadcrumb

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

function Config::getPathsForPackage

Get a list of paths to remove for the given package.

Parameters

string $package: The package name.

Return value

string[] Array of paths to remove, relative to the package.

File

composer/Plugin/VendorHardening/Config.php, line 152

Class

Config
Determine configuration.

Namespace

Drupal\Composer\Plugin\VendorHardening

Code

public function getPathsForPackage($package) {
    $package = strtolower($package);
    $paths = $this->getAllCleanupPaths();
    return $paths[$package] ?? [];
}
RSS feed
Powered by Drupal