You are here

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

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

Check if a CDN plugin is available.

Parameters

string $plugin_id: The CDN Plugin ID, defined by the key 'id' in the plugins's annotation.

Return value

bool TRUE if the plugin is available, otherwise, FALSE.

File

src/LibrariesCdn.php, line 28
Contains LibrariesCdn.

Class

LibrariesCdn
Class LibrariesCdn.

Namespace

Drupal\libraries_cdn

Code

public static function isAvailableCdn($plugin_id) {
  return in_array($plugin_id, self::getAvailableCdn());
}