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

Breadcrumb

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

function Perforce::generateP4Command

Return value

non-empty-string

13 calls to Perforce::generateP4Command()
Perforce::checkStream in vendor/composer/composer/src/Composer/Util/Perforce.php
Perforce::cleanupClientSpec in vendor/composer/composer/src/Composer/Util/Perforce.php
Perforce::connectClient in vendor/composer/composer/src/Composer/Util/Perforce.php
Perforce::getBranches in vendor/composer/composer/src/Composer/Util/Perforce.php
Perforce::getChangeList in vendor/composer/composer/src/Composer/Util/Perforce.php

... See full list

File

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

Class

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

Namespace

Composer\Util

Code

public function generateP4Command(string $command, bool $useClient = true) : string {
    $p4Command = $this->getP4Executable() . ' ';
    $p4Command .= '-u ' . $this->getUser() . ' ';
    if ($useClient) {
        $p4Command .= '-c ' . $this->getClient() . ' ';
    }
    $p4Command .= '-p ' . $this->getPort() . ' ' . $command;
    return $p4Command;
}

API Navigation

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