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

Breadcrumb

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

function GitHubDriver::getUrl

@inheritDoc

Overrides VcsDriverInterface::getUrl

1 call to GitHubDriver::getUrl()
GitHubDriver::getSource in vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php, line 104

Class

GitHubDriver
@author Jordi Boggiano <j.boggiano@seld.be>

Namespace

Composer\Repository\Vcs

Code

public function getUrl() : string {
    if ($this->gitDriver) {
        return $this->gitDriver
            ->getUrl();
    }
    return 'https://' . $this->originUrl . '/' . $this->owner . '/' . $this->repository . '.git';
}
RSS feed
Powered by Drupal