class BackgroundImageSettingsBlurCacheContext in Background Image 2.x
Same name and namespace in other branches
- 8 src/Cache/Context/BackgroundImageSettingsBlurCacheContext.php \Drupal\background_image\Cache\Context\BackgroundImageSettingsBlurCacheContext
- 2.0.x src/Cache/Context/BackgroundImageSettingsBlurCacheContext.php \Drupal\background_image\Cache\Context\BackgroundImageSettingsBlurCacheContext
Cache context ID: 'background_image.settings.blur'.
Hierarchy
- class \Drupal\background_image\Cache\Context\BackgroundImageBaseCacheContext implements CacheContextInterface
- class \Drupal\background_image\Cache\Context\BackgroundImageSettingsBlurCacheContext
Expanded class hierarchy of BackgroundImageSettingsBlurCacheContext
1 string reference to 'BackgroundImageSettingsBlurCacheContext'
1 service uses BackgroundImageSettingsBlurCacheContext
File
- src/
Cache/ Context/ BackgroundImageSettingsBlurCacheContext.php, line 8
Namespace
Drupal\background_image\Cache\ContextView source
class BackgroundImageSettingsBlurCacheContext extends BackgroundImageBaseCacheContext {
/**
* {@inheritdoc}
*/
public static function getLabel() {
return t('Background Image: Blur Settings');
}
/**
* {@inheritdoc}
*/
public function getContext() {
return $this->backgroundImage ? $this->backgroundImage
->getSettingsHash('blur') : 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. | |
BackgroundImageSettingsBlurCacheContext:: |
public | function |
Returns the string representation of the cache context. Overrides CacheContextInterface:: |
|
BackgroundImageSettingsBlurCacheContext:: |
public static | function |
Returns the label of the cache context. Overrides CacheContextInterface:: |