You are here

public function CDNBase::getVersions in Libraries CDN API 7

Return all available version(s).

Return value

array Return an array with available versions of the library.

Overrides CDNBaseInterface::getVersions

2 methods override CDNBase::getVersions()
CDNJS::getVersions in src/Plugin/LibrariesCDN/CDNJS.php
Return all available version(s).
Dummy::getVersions in modules/libraries_cdn_example_plugin/src/Plugin/LibrariesCDN/Dummy.php
Return all available version(s).

File

src/Type/CDNBase.php, line 170
Class CDNBase.

Class

CDNBase
Class CDNBase.

Namespace

Drupal\libraries_cdn\Type

Code

public function getVersions() {
  if (!$this
    ->isAvailable()) {
    return array();
  }
  $data = $this
    ->formatData(__FUNCTION__, $this
    ->query($this
    ->getURL(__FUNCTION__)));
  return array_filter($data);
}