protected function VendorHardeningPlugin::getInstallPathForPackage in Drupal 9
Same name and namespace in other branches
- 10 composer/Plugin/VendorHardening/VendorHardeningPlugin.php \Drupal\Composer\Plugin\VendorHardening\VendorHardeningPlugin::getInstallPathForPackage()
Gets the installed path for a package.
Parameters
\Composer\Package\PackageInterface $package: The package.
Return value
string Path to the install path for the package, relative to the project. This accounts for changes made by composer/installers, if any.
1 call to VendorHardeningPlugin::getInstallPathForPackage()
- VendorHardeningPlugin::cleanPathsForPackage in composer/
Plugin/ VendorHardening/ VendorHardeningPlugin.php - Clean the installed directories for a named package.
File
- composer/
Plugin/ VendorHardening/ VendorHardeningPlugin.php, line 262
Class
- VendorHardeningPlugin
- A Composer plugin to clean out your project's vendor directory.
Namespace
Drupal\Composer\Plugin\VendorHardeningCode
protected function getInstallPathForPackage(PackageInterface $package) {
return $this->composer
->getInstallationManager()
->getInstallPath($package);
}