public function CdnBase::isLocalAvailable in Libraries CDN API 8
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/
CdnBase.php - Copy a library from the CDN to the local filesystem.
File
- src/
CdnBase.php, line 224 - Class CdnBase.
Class
- CdnBase
- Class CdnBase.
Namespace
Drupal\libraries_cdnCode
public function isLocalAvailable($file, $version) {
return file_exists($this
->getLocalFileName(basename($file), $version));
}