class JsDelivr
The "jsdelivr" CDN Provider plugin.
Plugin annotation
@BootstrapProvider(
id = "jsdelivr",
label = @Translation("jsDelivr"),
description = @Translation("<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=:read_more target=_blank>read more</a>", arguments = {
":jsdelivr" = "https://www.jsdelivr.com",
":maxcdn" = "https://www.maxcdn.com",
":cloudflare" = "https://www.cloudflare.com",
":read_more" = "https://www.jsdelivr.com/about",
}),
weight = -1
)
Hierarchy
- class \Drupal\bootstrap\Plugin\PluginBase extends \Drupal\Core\Plugin\PluginBase
- class \Drupal\bootstrap\Plugin\Provider\ProviderBase implements ProviderInterface
- class \Drupal\bootstrap\Plugin\Provider\ApiProviderBase
- class \Drupal\bootstrap\Plugin\Provider\JsDelivr
- class \Drupal\bootstrap\Plugin\Provider\ApiProviderBase
- class \Drupal\bootstrap\Plugin\Provider\ProviderBase implements ProviderInterface
Expanded class hierarchy of JsDelivr
Related topics
Namespace
Drupal\bootstrap\Plugin\ProviderMembers
Name | Modifiers | Type | Description |
---|---|---|---|
ApiProviderBase:: |
protected | function |
Discovers the assets supported by the CDN Provider. Overrides ProviderBase:: |
ApiProviderBase:: |
protected | function |
Discovers the themes supported by the CDN Provider. Overrides ProviderBase:: |
ApiProviderBase:: |
protected | function |
Discovers the versions supported by the CDN Provider. Overrides ProviderBase:: |
ApiProviderBase:: |
protected | function | Retrieves the URL to use for determining available versions from the API. |
ApiProviderBase:: |
protected | function | Retrieves the URL to use for determining available versions from the API. |
ApiProviderBase:: |
protected | function | Retrieves a CDN URL based on provided variables. |
ApiProviderBase:: |
public static | function | Checks whether a version is valid. |
ApiProviderBase:: |
protected | function | Allows providers a way to map a library to a different library. |
ApiProviderBase:: |
protected | function |
Allows providers a way to map a version to a different version. Overrides ProviderBase:: |
ApiProviderBase:: |
protected | function | Parses assets provided by the API data. |
ApiProviderBase:: |
protected | function | Parses available versions provided by the API data. |
ApiProviderBase:: |
public | function |
Overrides ProviderBase:: |
ApiProviderBase:: |
protected | function | Requests available assets from the CDN Provider API. |
ApiProviderBase:: |
public | function | Requests available versions from the CDN Provider API. |
JsDelivr:: |
protected | function |
Retrieves the API URL template to use when requesting a specific asset. Overrides ApiProviderBase:: |
JsDelivr:: |
protected | function |
Retrieves the API URL template to use for determining available versions. Overrides ApiProviderBase:: |
JsDelivr:: |
protected | function |
Retrieves the CDN URL template to use. Overrides ApiProviderBase:: |
PluginBase:: |
protected | property | The currently set theme object. |
PluginBase:: |
public | function | |
ProviderBase:: |
protected | property | The currently set assets. |
ProviderBase:: |
protected | property | The cache TTL values, in seconds, keyed by type. |
ProviderBase:: |
protected | property | The currently set CDN assets, keyed by a hash identifier. |
ProviderBase:: |
protected | property | A list of currently set Exception objects. |
ProviderBase:: |
protected | property | The cache backend used for storing various permanent CDN Provider data. |
ProviderBase:: |
protected | property | The cache backend used for storing various expirable CDN Provider data. |
ProviderBase:: |
protected | property | The themes supplied by the CDN Provider, keyed by version. |
ProviderBase:: |
protected | property | The versions supplied by the CDN Provider. |
ProviderBase:: |
protected | function | Adds a new CDN Provider exception. |
ProviderBase:: |
public | function |
Overrides ProviderInterface:: |
ProviderBase:: |
protected | function | Retrieves a value from the CDN Provider cache. |
ProviderBase:: |
public | function |
Overrides ProviderInterface:: |
ProviderBase:: |
public | function |
Overrides ProviderInterface:: |
ProviderBase:: |
protected | function | Retrieves the unique cache identifier for the CDN Provider. |
ProviderBase:: |
public | function |
Retrieves the cache time-to-live (TTL) value. Overrides ProviderInterface:: |
ProviderBase:: |
public | function |
Retrieves the assets from the CDN, if any. Overrides ProviderInterface:: |
ProviderBase:: |
protected | function | Retrieves the data used to create a hash for CDN Assets. |
ProviderBase:: |
public | function |
Retrieves any CDN ProviderException objects triggered during discovery. Overrides ProviderInterface:: |
ProviderBase:: |
public | function |
Retrieves the currently set CDN Provider theme. Overrides ProviderInterface:: |
ProviderBase:: |
public | function |
Retrieves the themes supported by the CDN Provider. Overrides ProviderInterface:: |
ProviderBase:: |
protected | function | Retrieves the data used to create a hash for CDN Themes. |
ProviderBase:: |
public | function |
Retrieves the currently set CDN Provider version. Overrides ProviderInterface:: |
ProviderBase:: |
public | function |
Retrieves the versions supported by the CDN Provider. Overrides ProviderInterface:: |
ProviderBase:: |
protected | function | Retrieves the data used to create a hash for CDN Versions. |
ProviderBase:: |
public | function |
Retrieves the provider description. Overrides ProviderInterface:: |
ProviderBase:: |
protected | function | Retrieves a permanent key/value storage instance. |
ProviderBase:: |
protected | function | Retrieves a expirable key/value storage instance. |
ProviderBase:: |
public | function |
Retrieves the provider human-readable label. Overrides ProviderInterface:: |
ProviderBase:: |
public | function |
Retrieves the themes supported by the CDN Provider. Overrides ProviderInterface:: |
ProviderBase:: |
public | function |
Retrieves the versions supported by the CDN Provider. Overrides ProviderInterface:: |
ProviderBase:: |
public | function |
Overrides ProviderInterface:: |
ProviderBase:: |
public | function |
Overrides ProviderInterface:: |
ProviderBase:: |
public | function |
Overrides ProviderInterface:: |
ProviderBase:: |
protected | function | Initiates an HTTP request. |
ProviderBase:: |
public | function |
Removes any cached data the CDN Provider may have. Overrides ProviderInterface:: |
ProviderBase:: |
protected | function | Sets CDN Provider exceptions, replacing any existing exceptions. |
ProviderBase:: |
public | function |
Indicates whether the CDN Provider supports themes. Overrides ProviderInterface:: |
ProviderBase:: |
public | function |
Indicates whether the CDN Provider supports versions. Overrides ProviderInterface:: |
ProviderBase:: |
public | function |
Tracks any newly generated CDN exceptions generated during a callable. Overrides ProviderInterface:: |
ProviderInterface:: |
constant | Defines the "assets" cache type. | |
ProviderInterface:: |
constant | Defines the "library" cache type. | |
ProviderInterface:: |
constant | Defines the "themes" cache type. | |
ProviderInterface:: |
constant | Defines the "versions" cache type. | |
ProviderInterface:: |
constant | Defines the "forever" time-to-live (TTL) value. | |
ProviderInterface:: |
constant | Defines the "never" time-to-live (TTL) value. | |
ProviderInterface:: |
constant | Defines the "one day" time-to-live (TTL) value. | |
ProviderInterface:: |
constant | Defines the "one month" time-to-live (TTL) value. | |
ProviderInterface:: |
constant | Defines the "one week" time-to-live (TTL) value. | |
ProviderInterface:: |
constant | Defines the "one year" time-to-live (TTL) value. | |
ProviderInterface:: |
constant | Defines the "six months" time-to-live (TTL) value. | |
ProviderInterface:: |
constant | Defines the "three months" time-to-live (TTL) value. |