public function CDNBase::isLocalAvailable in Libraries CDN API 7
Check if a file is available locally.
Parameters
string $file: The file to check.
string $version: The version to check the file against.
Return value
bool Return TRUE if the file is available, FALSE otherwise.
Overrides CDNBaseInterface::isLocalAvailable
1 call to CDNBase::isLocalAvailable()
- CDNBase::getLocalCopy in src/
Type/ CDNBase.php - Copy a library from the CDN to the local filesystem.
File
- src/
Type/ CDNBase.php, line 220 - Class CDNBase.
Class
- CDNBase
- Class CDNBase.
Namespace
Drupal\libraries_cdn\TypeCode
public function isLocalAvailable($file, $version) {
return file_exists($this
->getLocalFileName(basename($file), $version));
}