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

Breadcrumb

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

function InstallationManager::getInstallPath

Returns the installation path of a package

Return value

string|null absolute path to install to, which does not end with a slash, or null if the package does not have anything installed on disk

File

vendor/composer/composer/src/Composer/Installer/InstallationManager.php, line 560

Class

InstallationManager
Package operation manager.

Namespace

Composer\Installer

Code

public function getInstallPath(PackageInterface $package) : ?string {
    $installer = $this->getInstaller($package->getType());
    return $installer->getInstallPath($package);
}

API Navigation

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