function Config::getPathsForPackage

Same name in other branches
  1. 8.9.x composer/Plugin/VendorHardening/Config.php \Drupal\Composer\Plugin\VendorHardening\Config::getPathsForPackage()
  2. 10 composer/Plugin/VendorHardening/Config.php \Drupal\Composer\Plugin\VendorHardening\Config::getPathsForPackage()
  3. 11.x composer/Plugin/VendorHardening/Config.php \Drupal\Composer\Plugin\VendorHardening\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 157

Class

Config
Determine configuration.

Namespace

Drupal\Composer\Plugin\VendorHardening

Code

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

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.