You are here

public function BackgroundImageManager::getRetinaRules in Background Image 2.0.x

Same name and namespace in other branches
  1. 8 src/BackgroundImageManager.php \Drupal\background_image\BackgroundImageManager::getRetinaRules()
  2. 2.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') ?: [];
}