You are here

public function CdnBase::convertFiles in Libraries CDN API 8

1 call to CdnBase::convertFiles()
CdnBase::getFiles in src/CdnBase.php
Return all available file(s).

File

src/CdnBase.php, line 214
Class CdnBase.

Class

CdnBase
Class CdnBase.

Namespace

Drupal\libraries_cdn

Code

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);
}