BackgroundImageSettingsFullViewportCacheContext.php in Background Image 8
File
src/Cache/Context/BackgroundImageSettingsFullViewportCacheContext.php
View source
<?php
namespace Drupal\background_image\Cache\Context;
class BackgroundImageSettingsFullViewportCacheContext extends BackgroundImageBaseCacheContext {
public static function getLabel() {
return t('Background Image: Full Viewport Setting');
}
public function getContext() {
return $this->backgroundImage ? $this->backgroundImage
->getSetting('full_viewport') : 0;
}
}