Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / web / themes / contrib / bootstrap / src / Plugin / Provider / JsDelivr.php
index 2b1f34e94569a32e2f24cdb17cf1a00af85cac43..950a9d3e6609a42f35898027a381b5c34fc66b3f 100644 (file)
@@ -1,15 +1,9 @@
 <?php
-/**
- * @file
- * Contains \Drupal\bootstrap\Plugin\Provider\JsDelivr.
- */
 
 namespace Drupal\bootstrap\Plugin\Provider;
 
-use Drupal\bootstrap\Annotation\BootstrapProvider;
 use Drupal\bootstrap\Bootstrap;
 use Drupal\Component\Utility\NestedArray;
-use Drupal\Core\Annotation\Translation;
 
 /**
  * The "jsdelivr" CDN provider plugin.
@@ -19,7 +13,7 @@ use Drupal\Core\Annotation\Translation;
  * @BootstrapProvider(
  *   id = "jsdelivr",
  *   label = @Translation("jsDelivr"),
- *   api = "http://api.jsdelivr.com/v1/bootstrap/libraries",
+ *   api = "https://api.jsdelivr.com/v1/bootstrap/libraries",
  *   themes = { },
  *   versions = { },
  * )
@@ -100,11 +94,11 @@ class JsDelivr extends ProviderBase {
    * {@inheritdoc}
    */
   public function processApi(array $json, array &$definition) {
-    $definition['description'] = t('<p style="background:#EB4C36"><a href=":jsdelivr" target="_blank"><img src="http://www.jsdelivr.com/img/logo-34.png" alt="jsDelivr Logo"/></a></p><p><a href=":jsdelivr" target="_blank">jsDelivr</a> is a free multi-CDN infrastructure that uses <a href=":maxcdn" target="_blank">MaxCDN</a>, <a href=":cloudflare" target="_blank">Cloudflare</a> and many others to combine their powers for the good of the open source community... <a href=":jsdelivr_about" target="_blank">read more</a></p>', [
-      ':jsdelivr' => 'http://www.jsdelivr.com',
-      ':jsdelivr_about' => 'http://www.jsdelivr.com/about',
-      ':maxcdn' => 'http://www.maxcdn.com',
-      ':cloudflare' => 'http://www.cloudflare.com',
+    $definition['description'] = t('<p style="background:#EB4C36"><a href=":jsdelivr" target="_blank"><img src="//www.jsdelivr.com/img/logo.png" alt="jsDelivr Logo"/></a></p><p><a href=":jsdelivr" target="_blank">jsDelivr</a> is a free multi-CDN infrastructure that uses <a href=":maxcdn" target="_blank">MaxCDN</a>, <a href=":cloudflare" target="_blank">Cloudflare</a> and many others to combine their powers for the good of the open source community... <a href=":jsdelivr_about" target="_blank">read more</a></p>', [
+      ':jsdelivr' => 'https://www.jsdelivr.com',
+      ':jsdelivr_about' => 'https://www.jsdelivr.com/about',
+      ':maxcdn' => 'https://www.maxcdn.com',
+      ':cloudflare' => 'https://www.cloudflare.com',
     ]);
 
     // Expected library names from jsDelivr API v1. Must use "twitter-bootstrap"