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

Breadcrumb

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

function PackageInterface::getVersion

Returns the version of this package

Return value

string version

1 call to PackageInterface::getVersion()
BasePackage::getUniqueName in vendor/composer/composer/src/Composer/Package/BasePackage.php
Returns package unique name, constructed from name, version and release type.
2 methods override PackageInterface::getVersion()
AliasPackage::getVersion in vendor/composer/composer/src/Composer/Package/AliasPackage.php
@inheritDoc
Package::getVersion in vendor/composer/composer/src/Composer/Package/Package.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Package/PackageInterface.php, line 207

Class

PackageInterface
Defines the essential information a package has that is used during solving/installation

Namespace

Composer\Package

Code

public function getVersion() : string;

API Navigation

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