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

Breadcrumb

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

function VcsDriverInterface::getBranches

Return list of branches in the repository

Return value

array<int|string, string> Branch names as keys, identifiers as values

8 methods override VcsDriverInterface::getBranches()
FossilDriver::getBranches in vendor/composer/composer/src/Composer/Repository/Vcs/FossilDriver.php
@inheritDoc
GitBitbucketDriver::getBranches in vendor/composer/composer/src/Composer/Repository/Vcs/GitBitbucketDriver.php
@inheritDoc
GitDriver::getBranches in vendor/composer/composer/src/Composer/Repository/Vcs/GitDriver.php
@inheritDoc
GitHubDriver::getBranches in vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php
@inheritDoc
GitLabDriver::getBranches in vendor/composer/composer/src/Composer/Repository/Vcs/GitLabDriver.php
@inheritDoc

... See full list

File

vendor/composer/composer/src/Composer/Repository/Vcs/VcsDriverInterface.php, line 59

Class

VcsDriverInterface
@author Jordi Boggiano <j.boggiano@seld.be> @internal

Namespace

Composer\Repository\Vcs

Code

public function getBranches() : array;
RSS feed
Powered by Drupal