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

Breadcrumb

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

function PackageInterface::getSourceReference

Returns the repository reference of this package, e.g. master, 1.0.0 or a commit hash for git

Return value

?string The repository reference

1 call to PackageInterface::getSourceReference()
BasePackage::getFullPrettyVersion in vendor/composer/composer/src/Composer/Package/BasePackage.php
@inheritDoc
2 methods override PackageInterface::getSourceReference()
AliasPackage::getSourceReference in vendor/composer/composer/src/Composer/Package/AliasPackage.php
Returns the repository reference of this package, e.g. master, 1.0.0 or a commit hash for git
Package::getSourceReference in vendor/composer/composer/src/Composer/Package/Package.php
@inheritDoc

File

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

Class

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

Namespace

Composer\Package

Code

public function getSourceReference() : ?string;

API Navigation

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