You are here

public function BackgroundImageManager::getPreloadImageStyle in Background Image 8

Same name and namespace in other branches
  1. 2.x src/BackgroundImageManager.php \Drupal\background_image\BackgroundImageManager::getPreloadImageStyle()
  2. 2.0.x src/BackgroundImageManager.php \Drupal\background_image\BackgroundImageManager::getPreloadImageStyle()

Retrieves the preload image style.

Return value

string

Overrides BackgroundImageManagerInterface::getPreloadImageStyle

File

src/BackgroundImageManager.php, line 601

Class

BackgroundImageManager

Namespace

Drupal\background_image

Code

public function getPreloadImageStyle() {
  return $this->config
    ->get('image_style.preload') ?: 'background_image_preload';
}