public function BackgroundImageSettingsBlurTypeCacheContext::getContext in Background Image 8
Same name and namespace in other branches
- 2.x src/Cache/Context/BackgroundImageSettingsBlurTypeCacheContext.php \Drupal\background_image\Cache\Context\BackgroundImageSettingsBlurTypeCacheContext::getContext()
- 2.0.x src/Cache/Context/BackgroundImageSettingsBlurTypeCacheContext.php \Drupal\background_image\Cache\Context\BackgroundImageSettingsBlurTypeCacheContext::getContext()
Returns the string representation of the cache context.
A cache context service's name is used as a token (placeholder) cache key, and is then replaced with the string returned by this method.
Return value
string The string representation of the cache context.
Overrides CacheContextInterface::getContext
File
- src/
Cache/ Context/ BackgroundImageSettingsBlurTypeCacheContext.php, line 20
Class
- BackgroundImageSettingsBlurTypeCacheContext
- Cache context ID: 'background_image.settings.blur.type'.
Namespace
Drupal\background_image\Cache\ContextCode
public function getContext() {
return $this->backgroundImage ? $this->backgroundImage
->getSetting('blur.type') : 0;
}