function InstalledPackage::__construct
Same name and namespace in other branches
- 11.x core/modules/package_manager/src/InstalledPackage.php \Drupal\package_manager\InstalledPackage::__construct()
Constructs an InstalledPackage object.
Parameters
string $name: The package name.
string $version: The package version.
string|null $path: The package path, or NULL if the package type is `metapackage`.
string $type: The package type.
File
-
core/
modules/ package_manager/ src/ InstalledPackage.php, line 26
Class
- InstalledPackage
- A value object that represents an installed Composer package.
Namespace
Drupal\package_managerCode
private function __construct(public readonly string $name, public readonly string $version, public readonly ?string $path, public readonly string $type) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.