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

Breadcrumb

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

function HgDriver::getSource

@inheritDoc

Overrides VcsDriverInterface::getSource

File

vendor/composer/composer/src/Composer/Repository/Vcs/HgDriver.php, line 112

Class

HgDriver
@author Per Bernhardt <plb@webfactory.de>

Namespace

Composer\Repository\Vcs

Code

public function getSource(string $identifier) : array {
    return [
        'type' => 'hg',
        'url' => $this->getUrl(),
        'reference' => $identifier,
    ];
}
RSS feed
Powered by Drupal