class CdnCacheTtlThemes
The "cdn_cache_ttl_themes" theme setting.
Plugin annotation
@BootstrapSetting(
id = "cdn_cache_ttl_themes",
type = "select",
weight = 2,
title = @Translation("Available Themes"),
description = @Translation("The length of time to cache the CDN themes (if applicable) before requesting them from the API again."),
defaultValue = \Drupal\bootstrap\Plugin\Provider\ProviderInterface::TTL_ONE_WEEK,
groups = {
"cdn" = @Translation("CDN (Content Delivery Network)"),
"cdn_provider" = false,
"cache" = @Translation("Advanced Cache"),
},
)
Hierarchy
- class \Drupal\bootstrap\Plugin\PluginBase extends \Drupal\Core\Plugin\PluginBase
- class \Drupal\bootstrap\Plugin\Setting\SettingBase implements SettingInterface
- class \Drupal\bootstrap\Plugin\Setting\Advanced\Cdn\CdnProviderBase uses FormAutoloadFixTrait
- class \Drupal\bootstrap\Plugin\Setting\Advanced\Cdn\CdnCacheTtlBase
- class \Drupal\bootstrap\Plugin\Setting\Advanced\Cdn\CdnCacheTtlThemes
- class \Drupal\bootstrap\Plugin\Setting\Advanced\Cdn\CdnCacheTtlBase
- class \Drupal\bootstrap\Plugin\Setting\Advanced\Cdn\CdnProviderBase uses FormAutoloadFixTrait
- class \Drupal\bootstrap\Plugin\Setting\SettingBase implements SettingInterface
Expanded class hierarchy of CdnCacheTtlThemes
Related topics
Namespace
Drupal\bootstrap\Plugin\Setting\Advanced\CdnMembers
Name | Modifiers | Type | Description |
---|---|---|---|
SettingBase:: |
public | function |
Overrides SettingInterface:: |
SettingBase:: |
public | function |
Overrides SettingInterface:: |
PluginBase:: |
public | function | |
SettingBase:: |
public static | property | |
CdnCacheTtlBase:: |
static protected | property | A list of TTL options. |
FormAutoloadFixTrait:: |
public static | function | Adds the autoload fix include file to the form state. |
CdnProviderBase:: |
public static | function | AJAX callback for reloading CDN Providers. |
SettingBase:: |
public | function |
Determines whether a theme setting should added to drupalSettings. Overrides SettingInterface:: |
SettingBase:: |
public static | function |
Form submission handler. Overrides FormInterface:: |
SettingBase:: |
public static | function |
Form submission handler. Overrides FormInterface:: |
SettingBase:: |
public static | function |
Form validation handler. Overrides FormInterface:: |
SettingBase:: |
public static | function |
Form validation handler. Overrides FormInterface:: |
CdnProviderBase:: |
protected static | function | Handles any CDN Provider exceptions that may have been thrown. |
CdnCacheTtlBase:: |
public | function |
Indicates whether a form element should be created automatically. Overrides SettingBase:: |
CdnCacheTtlThemes:: |
public | function |
Indicates whether a setting is accessible. Overrides SettingBase:: |
SettingBase:: |
public | function | Retrieves all the form properties from the setting definition. |
CdnProviderBase:: |
protected | function | Retrieves the active CDN Provider. |
CdnCacheTtlBase:: |
protected | function | Retrieves the DateFormatter service. |
SettingBase:: |
public | function |
Retrieves the form element for the setting. Overrides SettingInterface:: |
SettingBase:: |
public | function |
Retrieves the group form element the setting belongs to. Overrides SettingInterface:: |
CdnCacheTtlThemes:: |
protected | function |
Retrieves the setting value used to populate the form. Overrides SettingBase:: |
SettingBase:: |
public | function |
Retrieves the setting's default value. Overrides SettingInterface:: |
SettingBase:: |
public | function |
Retrieves the setting's description, if any. Overrides SettingInterface:: |
SettingBase:: |
public | function |
Retrieves the setting's groups. Overrides SettingInterface:: |
SettingBase:: |
public | function |
Retrieves the setting's human-readable title. Overrides SettingInterface:: |
SettingBase:: |
public | function |
Retrieves the settings options, if set. Overrides SettingInterface:: |
CdnCacheTtlBase:: |
protected | function | Retrieves the TTL options. |
SettingBase:: |
public | function |
Retrieves the value from other deprecated settings. Overrides SettingInterface:: |
CdnProviderBase:: |
protected | function | Sets the #ajax property to rebuild the entire CDN Providers container. |
CdnProviderBase:: |
protected | property | The active provider based on form value or theme setting. |
CdnCacheTtlBase:: |
public | function |
The alter method to store the code. Overrides SettingBase:: |
CdnProviderBase:: |
public | function |
The alter method to store the code. Overrides SettingBase:: |
CdnProviderBase:: |
public | function |
The cache tags associated with this object. Overrides SettingBase:: |
PluginBase:: |
protected | property | The currently set theme object. |
CdnCacheTtlBase:: |
static protected | property | The DateFormatter service. |