public static function LibrariesCDN::getLibrariesVariants in Libraries CDN API 7
Same name and namespace in other branches
- 8 src/LibrariesCdn.php \Drupal\libraries_cdn\LibrariesCdn::getLibrariesVariants()
Generate an array for the variants of the Libraries API module.
Parameters
array $library: The library array.
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 238 - Contains LibrariesCDN.
Class
- LibrariesCDN
- Class LibrariesCDN.
Namespace
Drupal\libraries_cdnCode
public static function getLibrariesVariants(&$library) {
$variants = array();
$variants += self::getCDNLibrariesVariants($library);
$variants += self::getLocalLibrariesVariants($library);
return $variants;
}