You are here

public function BackgroundImageManager::getCssMinifier in Background Image 2.x

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

Retrieves the AdvAgg CSS Minifier service, if it exists.

Return value

\Drupal\advagg_css_minify\Asset\CssMinifier|null

Overrides BackgroundImageManagerInterface::getCssMinifier

1 call to BackgroundImageManager::getCssMinifier()
BackgroundImageManager::useMinifiedCssUri in src/BackgroundImageManager.php
Determines whether minified CSS URIs should be used.

File

src/BackgroundImageManager.php, line 361

Class

BackgroundImageManager

Namespace

Drupal\background_image

Code

public function getCssMinifier() {

  // @todo this should be using $this->container, but it's not always set?
  return \Drupal::getContainer()
    ->get('advagg.css_minifier', ContainerInterface::NULL_ON_INVALID_REFERENCE);
}