public function BackgroundImageManager::getCssMinifier in Background Image 8
Same name and namespace in other branches
- 2.x src/BackgroundImageManager.php \Drupal\background_image\BackgroundImageManager::getCssMinifier()
- 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
Namespace
Drupal\background_imageCode
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);
}