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