BackgroundImageSettingsCacheContext.php in Background Image 2.x
Same filename and directory in other branches
Namespace
Drupal\background_image\Cache\ContextFile
src/Cache/Context/BackgroundImageSettingsCacheContext.phpView source
<?php
namespace Drupal\background_image\Cache\Context;
/**
* Cache context ID: 'background_image.settings'.
*/
class BackgroundImageSettingsCacheContext extends BackgroundImageBaseCacheContext {
/**
* {@inheritdoc}
*/
public static function getLabel() {
return t('Background Image: Settings');
}
/**
* {@inheritdoc}
*/
public function getContext() {
return $this->backgroundImage ? $this->backgroundImage
->getSettingsHash() : 0;
}
}
Classes
Name | Description |
---|---|
BackgroundImageSettingsCacheContext | Cache context ID: 'background_image.settings'. |