WordPress at a glance
function is not described

Composer\Installers

Installer::getInstallPath() public WC 1.0

{@inheritDoc}

{} It's a method of the class: Installer{}

No Hooks.

Return

null. Nothing.

Usage

$Installer = new Installer();
$Installer->getInstallPath( $package );
$package(Packageinterface) (required)
-

Code of Installer::getInstallPath() WC 5.3.0

<?php
public function getInstallPath(PackageInterface $package)
{
    $type = $package->getType();
    $frameworkType = $this->findFrameworkType($type);

    if ($frameworkType === false) {
        throw new \InvalidArgumentException(
            'Sorry the package type of this package is not yet supported.'
        );
    }

    $class = 'Composer\\Installers\\' . $this->supportedTypes[$frameworkType];
    $installer = new $class($package, $this->composer, $this->getIO());

    return $installer->getInstallPath($package, $frameworkType);
}