public function CDNBase::convertFiles in Libraries CDN API 7
2 calls to CDNBase::convertFiles()
- CDNBase::getFiles in src/
Type/ CDNBase.php - Return all available file(s).
- Dummy::getFiles in modules/
libraries_cdn_example_plugin/ src/ Plugin/ LibrariesCDN/ Dummy.php - Return all available file(s).
File
- src/
Type/ CDNBase.php, line 210 - Class CDNBase.
Class
- CDNBase
- Class CDNBase.
Namespace
Drupal\libraries_cdn\TypeCode
public function convertFiles(array $files, $version) {
$url = $this
->getURL(__FUNCTION__);
return array_map(function ($v) use ($url, $version) {
return sprintf($url, $this
->getLibrary(), $version) . $v;
}, $files);
}