You are here

public function CdnBase::formatData in Libraries CDN API 8

Return the data to use in each method.

Parameters

string $function: The method name.

array $data: The data from query.

Return value

array The resulting array.

Overrides CdnBaseInterface::formatData

6 calls to CdnBase::formatData()
CdnBase::getFiles in src/CdnBase.php
Return all available file(s).
CdnBase::getInformation in src/CdnBase.php
Get library information.
CdnBase::getLatestVersion in src/CdnBase.php
Get latest version available of a library.
CdnBase::getVersions in src/CdnBase.php
Return all available version(s).
CdnBase::isAvailable in src/CdnBase.php
Check if library is available.

... See full list

2 methods override CdnBase::formatData()
CdnJs::formatData in src/Plugin/LibrariesCdn/CdnJs.php
Return the data to use in each method.
JSDelivr::formatData in src/Plugin/LibrariesCdn/JsDelivr.php
Return the data to use in each method.

File

src/CdnBase.php, line 279
Class CdnBase.

Class

CdnBase
Class CdnBase.

Namespace

Drupal\libraries_cdn

Code

public function formatData($function, array $data = array()) {
  return $data;
}