<?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.
* @BootstrapProvider(
* id = "jsdelivr",
* label = @Translation("jsDelivr"),
- * api = "http://api.jsdelivr.com/v1/bootstrap/libraries",
+ * api = "https://api.jsdelivr.com/v1/bootstrap/libraries",
* themes = { },
* versions = { },
* )
* {@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"