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

Breadcrumb

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

function PerforceDriver::getSource

@inheritDoc

Overrides VcsDriverInterface::getSource

File

vendor/composer/composer/src/Composer/Repository/Vcs/PerforceDriver.php, line 122

Class

PerforceDriver
@author Matt Whittom <Matt.Whittom@veteransunited.com>

Namespace

Composer\Repository\Vcs

Code

public function getSource(string $identifier) : array {
    return [
        'type' => 'perforce',
        'url' => $this->repoConfig['url'],
        'reference' => $identifier,
        'p4user' => $this->perforce
            ->getUser(),
    ];
}
RSS feed
Powered by Drupal