You are here

public function BackgroundImageManager::getRetinaRules in Background Image 8

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

Retrieves the retina rules to use, if any.

Return value

array An array of individual media query rules.

Overrides BackgroundImageManagerInterface::getRetinaRules

File

src/BackgroundImageManager.php, line 618

Class

BackgroundImageManager

Namespace

Drupal\background_image

Code

public function getRetinaRules() {
  return $this->config
    ->get('css.retina_rules') ?: [];
}