public function BackgroundImageBaseCacheContext::__construct in Background Image 8
Same name and namespace in other branches
- 2.x src/Cache/Context/BackgroundImageBaseCacheContext.php \Drupal\background_image\Cache\Context\BackgroundImageBaseCacheContext::__construct()
- 2.0.x src/Cache/Context/BackgroundImageBaseCacheContext.php \Drupal\background_image\Cache\Context\BackgroundImageBaseCacheContext::__construct()
Constructs a BackgroundImageCacheContext object.
Parameters
\Drupal\background_image\BackgroundImageManagerInterface $background_image_manager:
File
- src/
Cache/ Context/ BackgroundImageBaseCacheContext.php, line 29
Class
- BackgroundImageBaseCacheContext
- Provides a base for Background Image based contexts.
Namespace
Drupal\background_image\Cache\ContextCode
public function __construct(BackgroundImageManagerInterface $background_image_manager) {
$this->manager = $background_image_manager;
$this->backgroundImage = $background_image_manager
->getBackgroundImage();
}