public function CDNBase::getLocalFileName in Libraries CDN API 7
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/
Type/ CDNBase.php - Copy a library from the CDN to the local filesystem.
- CDNBase::isLocalAvailable in src/
Type/ CDNBase.php - Check if a file is available locally.
File
- src/
Type/ CDNBase.php, line 227 - Class CDNBase.
Class
- CDNBase
- Class CDNBase.
Namespace
Drupal\libraries_cdn\TypeCode
public function getLocalFileName($file, $version) {
return $this
->getLocalDirectoryName($version) . '/' . basename($file);
}