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

Breadcrumb

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

function 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 269

Class

VendorHardeningPlugin
A Composer plugin to clean out your project's vendor directory.

Namespace

Drupal\Composer\Plugin\VendorHardening

Code

protected function getInstallPathForPackage(PackageInterface $package) : string {
    return $this->composer
        ->getInstallationManager()
        ->getInstallPath($package);
}

API Navigation

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