You are here

public static function LibrariesCdn::getLibrariesVariants in Libraries CDN API 8

Same name and namespace in other branches
  1. 7 src/LibrariesCDN.php \Drupal\libraries_cdn\LibrariesCDN::getLibrariesVariants()

Generate an array for the variants of the Libraries API module.

Return value

array The returned array can be applied to the 'variants' key in the library definition in hook_libraries_info().

1 call to LibrariesCdn::getLibrariesVariants()
libraries_cdn_libraries_info_alter in ./libraries_cdn.module
Implements hook_libraries_info_alter().

File

src/LibrariesCdn.php, line 236
Contains LibrariesCdn.

Class

LibrariesCdn
Class LibrariesCdn.

Namespace

Drupal\libraries_cdn

Code

public static function getLibrariesVariants() {
  $variants = array();
  $variants += self::getCDNLibrariesVariants();
  $variants += self::getLocalLibrariesVariants();
  return $variants;
}