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

Breadcrumb

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

function Perforce::getFileContent

1 call to Perforce::getFileContent()
Perforce::getComposerInformation in vendor/composer/composer/src/Composer/Util/Perforce.php

File

vendor/composer/composer/src/Composer/Util/Perforce.php, line 457

Class

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

Namespace

Composer\Util

Code

public function getFileContent(string $file, string $identifier) : ?string {
    $path = $this->getFilePath($file, $identifier);
    $command = $this->generateP4Command(' print ' . ProcessExecutor::escape($path));
    $this->executeCommand($command);
    $result = $this->commandResult;
    if (!trim($result)) {
        return null;
    }
    return $result;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal