function protected function ProviderBase::getCdnThemesCacheData

8.x-3.x ProviderBase.php protected ProviderBase::getCdnThemesCacheData($version = NULL)

Retrieves the data used to create a hash for CDN Themes.

Parameters

string $version: Optional. A specific version to use. If not set, the currently set CDN version of the active theme will be used.

Return value

array An array of components that will be serialized and hashed.

Class

ProviderBase
CDN Provider base class.

Namespace

Drupal\bootstrap\Plugin\Provider

Source src/Plugin/Provider/ProviderBase.php (line 386)

protected function getCdnThemesCacheData($version = NULL) {
  if (!isset($version) && $this->supportsVersions()) {
    $version = $this->getCdnVersion();
  }
  return [
    'ttl' => $this->getCacheTtl(static::CACHE_THEMES),
    'provider' => $this->pluginId,
    'version' => $version,
  ];
}