You are here

public function CdnBase::getLocalFileName in Libraries CDN API 8

Get the local file name of a library file.

Parameters

string $file: The file to check.

string $version: The version to check the file against.

Return value

string Return the file name.

Overrides CdnBaseInterface::getLocalFileName

2 calls to CdnBase::getLocalFileName()
CdnBase::getLocalCopy in src/CdnBase.php
Copy a library from the CDN to the local filesystem.
CdnBase::isLocalAvailable in src/CdnBase.php
Check if a file is available locally.

File

src/CdnBase.php, line 231
Class CdnBase.

Class

CdnBase
Class CdnBase.

Namespace

Drupal\libraries_cdn

Code

public function getLocalFileName($file, $version) {
  return $this
    ->getLocalDirectoryName($version) . '/' . basename($file);
}