You are here

public function CDNBase::formatData in Libraries CDN API 7

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/Type/CDNBase.php
Return all available file(s).
CDNBase::getInformation in src/Type/CDNBase.php
Get library information.
CDNBase::getLatestVersion in src/Type/CDNBase.php
Get latest version available of a library.
CDNBase::getVersions in src/Type/CDNBase.php
Return all available version(s).
CDNBase::isAvailable in src/Type/CDNBase.php
Check if library is available.

... See full list

3 methods override CDNBase::formatData()
CDNJS::formatData in src/Plugin/LibrariesCDN/CDNJS.php
Return the data to use in each method.
Dummy::formatData in modules/libraries_cdn_example_plugin/src/Plugin/LibrariesCDN/Dummy.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/Type/CDNBase.php, line 280
Class CDNBase.

Class

CDNBase
Class CDNBase.

Namespace

Drupal\libraries_cdn\Type

Code

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