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

Breadcrumb

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

function GitLabDriver::getRepositoryUrl

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

File

vendor/composer/composer/src/Composer/Repository/Vcs/GitLabDriver.php, line 237

Class

GitLabDriver
Driver for GitLab API, use the Git driver for local checkouts.

Namespace

Composer\Repository\Vcs

Code

public function getRepositoryUrl() : string {
    if ($this->protocol) {
        return $this->project["{$this->protocol}_url_to_repo"];
    }
    return $this->isPrivate ? $this->project['ssh_url_to_repo'] : $this->project['http_url_to_repo'];
}
RSS feed
Powered by Drupal