class BackgroundImageSettingsBlurTypeCacheContext in Background Image 8
Same name and namespace in other branches
- 2.x src/Cache/Context/BackgroundImageSettingsBlurTypeCacheContext.php \Drupal\background_image\Cache\Context\BackgroundImageSettingsBlurTypeCacheContext
- 2.0.x src/Cache/Context/BackgroundImageSettingsBlurTypeCacheContext.php \Drupal\background_image\Cache\Context\BackgroundImageSettingsBlurTypeCacheContext
Cache context ID: 'background_image.settings.blur.type'.
Hierarchy
- class \Drupal\background_image\Cache\Context\BackgroundImageBaseCacheContext implements CacheContextInterface
- class \Drupal\background_image\Cache\Context\BackgroundImageSettingsBlurTypeCacheContext
Expanded class hierarchy of BackgroundImageSettingsBlurTypeCacheContext
1 string reference to 'BackgroundImageSettingsBlurTypeCacheContext'
1 service uses BackgroundImageSettingsBlurTypeCacheContext
File
- src/
Cache/ Context/ BackgroundImageSettingsBlurTypeCacheContext.php, line 8
Namespace
Drupal\background_image\Cache\ContextView source
class BackgroundImageSettingsBlurTypeCacheContext extends BackgroundImageBaseCacheContext {
/**
* {@inheritdoc}
*/
public static function getLabel() {
return t('Background Image: Blur Type Setting');
}
/**
* {@inheritdoc}
*/
public function getContext() {
return $this->backgroundImage ? $this->backgroundImage
->getSetting('blur.type') : 0;
}
}
Members
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
BackgroundImageBaseCacheContext:: |
protected | property | ||
BackgroundImageBaseCacheContext:: |
protected | property | ||
BackgroundImageBaseCacheContext:: |
public | function |
Gets the cacheability metadata for the context. Overrides CacheContextInterface:: |
|
BackgroundImageBaseCacheContext:: |
public | function | Constructs a BackgroundImageCacheContext object. | |
BackgroundImageSettingsBlurTypeCacheContext:: |
public | function |
Returns the string representation of the cache context. Overrides CacheContextInterface:: |
|
BackgroundImageSettingsBlurTypeCacheContext:: |
public static | function |
Returns the label of the cache context. Overrides CacheContextInterface:: |