class abstract class ApiProviderBase
CDN Provider base that uses an API to populate its assets.
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\ProviderBase implements ProviderInterface
Expanded class hierarchy of ApiProviderBase
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:: |
abstract protected | function | Retrieves the API URL template to use when requesting a specific asset. |
ApiProviderBase:: |
protected | function | Retrieves the URL to use for determining available versions from the API. |
ApiProviderBase:: |
abstract protected | function | Retrieves the API URL template to use for determining available versions. |
ApiProviderBase:: |
protected | function | Retrieves a CDN URL based on provided variables. |
ApiProviderBase:: |
abstract protected | function | Retrieves the CDN URL template to use. |
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. |
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. |