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

Breadcrumb

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

function VcsDriver::shouldCache

Returns whether or not the given $identifier should be cached or not.

4 calls to VcsDriver::shouldCache()
GitBitbucketDriver::getComposerInformation in vendor/composer/composer/src/Composer/Repository/Vcs/GitBitbucketDriver.php
@inheritDoc
GitHubDriver::getComposerInformation in vendor/composer/composer/src/Composer/Repository/Vcs/GitHubDriver.php
@inheritDoc
GitLabDriver::getComposerInformation in vendor/composer/composer/src/Composer/Repository/Vcs/GitLabDriver.php
@inheritDoc
VcsDriver::getComposerInformation in vendor/composer/composer/src/Composer/Repository/Vcs/VcsDriver.php
@inheritDoc
1 method overrides VcsDriver::shouldCache()
SvnDriver::shouldCache in vendor/composer/composer/src/Composer/Repository/Vcs/SvnDriver.php
@inheritDoc

File

vendor/composer/composer/src/Composer/Repository/Vcs/VcsDriver.php, line 79

Class

VcsDriver
A driver implementation for driver with authentication interaction.

Namespace

Composer\Repository\Vcs

Code

protected function shouldCache(string $identifier) : bool {
    return $this->cache && Preg::isMatch('{^[a-f0-9]{40}$}iD', $identifier);
}
RSS feed
Powered by Drupal