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

Breadcrumb

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

function Perforce::getClient

4 calls to Perforce::getClient()
Perforce::cleanupClientSpec in vendor/composer/composer/src/Composer/Util/Perforce.php
Perforce::generateP4Command in vendor/composer/composer/src/Composer/Util/Perforce.php
Perforce::getP4ClientSpec in vendor/composer/composer/src/Composer/Util/Perforce.php
Perforce::writeClientSpecToFile in vendor/composer/composer/src/Composer/Util/Perforce.php

File

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

Class

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

Namespace

Composer\Util

Code

public function getClient() : string {
    if (!isset($this->p4Client)) {
        $cleanStreamName = str_replace([
            '//',
            '/',
            '@',
        ], [
            '',
            '_',
            '',
        ], $this->getStream());
        $this->p4Client = 'composer_perforce_' . $this->uniquePerforceClientName . '_' . $cleanStreamName;
    }
    return $this->p4Client;
}

API Navigation

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