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

Breadcrumb

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

function PerforceDriver::hasComposerFile

@inheritDoc

Overrides VcsDriver::hasComposerFile

File

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

Class

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

Namespace

Composer\Repository\Vcs

Code

public function hasComposerFile(string $identifier) : bool {
    $composerInfo = $this->perforce
        ->getComposerInformation('//' . $this->depot . '/' . $identifier);
    return !empty($composerInfo);
}
RSS feed
Powered by Drupal