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

Breadcrumb

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

function GitBitbucketDriver::getSource

@inheritDoc

Overrides VcsDriverInterface::getSource

File

vendor/composer/composer/src/Composer/Repository/Vcs/GitBitbucketDriver.php, line 268

Class

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

Namespace

Composer\Repository\Vcs

Code

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