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

Breadcrumb

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

function 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_manager

Code

private function __construct(string $name, string $version, ?string $path, string $type) {
}

API Navigation

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