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

Breadcrumb

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

function LibraryInstaller::getInstallPath

@inheritDoc

Return value

string

Overrides InstallerInterface::getInstallPath

10 calls to LibraryInstaller::getInstallPath()
LibraryInstaller::cleanup in vendor/composer/composer/src/Composer/Installer/LibraryInstaller.php
@inheritDoc
LibraryInstaller::download in vendor/composer/composer/src/Composer/Installer/LibraryInstaller.php
@inheritDoc
LibraryInstaller::ensureBinariesPresence in vendor/composer/composer/src/Composer/Installer/LibraryInstaller.php
Make sure binaries are installed for a given package.
LibraryInstaller::getPackageBasePath in vendor/composer/composer/src/Composer/Installer/LibraryInstaller.php
Returns the base path of the package without target-dir path
LibraryInstaller::install in vendor/composer/composer/src/Composer/Installer/LibraryInstaller.php
@inheritDoc

... See full list

1 method overrides LibraryInstaller::getInstallPath()
Installer::getInstallPath in vendor/composer/installers/src/Composer/Installers/Installer.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Installer/LibraryInstaller.php, line 233

Class

LibraryInstaller
Package installation manager.

Namespace

Composer\Installer

Code

public function getInstallPath(PackageInterface $package) {
    $this->initializeVendorDir();
    $basePath = ($this->vendorDir ? $this->vendorDir . '/' : '') . $package->getPrettyName();
    $targetDir = $package->getTargetDir();
    return $basePath . ($targetDir ? '/' . $targetDir : '');
}

API Navigation

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