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

Breadcrumb

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

function VcsRepository::getRepoName

Overrides ArrayRepository::getRepoName

File

vendor/composer/composer/src/Composer/Repository/VcsRepository.php, line 106

Class

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

Namespace

Composer\Repository

Code

public function getRepoName() {
    $driverClass = get_class($this->getDriver());
    $driverType = array_search($driverClass, $this->drivers);
    if (!$driverType) {
        $driverType = $driverClass;
    }
    return 'vcs repo (' . $driverType . ' ' . Url::sanitize($this->url) . ')';
}
RSS feed
Powered by Drupal