You are here

protected function LocalPackagesTrait::getPackagePath in Automatic Updates 8.2

Returns the path of an installed package, relative to composer.json.

Parameters

array $package: The package information, as read from the lock file.

Return value

string The path of the installed package, relative to composer.json.

2 calls to LocalPackagesTrait::getPackagePath()
LocalPackagesTrait::getLocalPackageRepositories in tests/src/Traits/LocalPackagesTrait.php
Generates local path repositories for a set of installed packages.
UpdateTestBase::getPackagePath in tests/src/Build/UpdateTestBase.php

File

tests/src/Traits/LocalPackagesTrait.php, line 36

Class

LocalPackagesTrait
Provides methods for interacting with installed Composer packages.

Namespace

Drupal\Tests\automatic_updates\Traits

Code

protected function getPackagePath(array $package) : string {
  return 'vendor' . DIRECTORY_SEPARATOR . $package['name'];
}