public function CssCollectionOptimizer::__construct

public CssCollectionOptimizer::__construct(AssetCollectionGrouperInterface $grouper, AssetOptimizerInterface $optimizer, AssetDumperInterface $dumper, StateInterface $state)

Constructs a CssCollectionOptimizer.

Parameters

\Drupal\Core\Asset\AssetCollectionGrouperInterface: The grouper for CSS assets.

\Drupal\Core\Asset\AssetOptimizerInterface: The optimizer for a single CSS asset.

\Drupal\Core\Asset\AssetDumperInterface: The dumper for optimized CSS assets.

\Drupal\Core\State\StateInterface: The state key/value store.

File

core/lib/Drupal/Core/Asset/CssCollectionOptimizer.php, line 52

Class

CssCollectionOptimizer
Optimizes CSS assets.

Namespace

Drupal\Core\Asset

Code

public function __construct(AssetCollectionGrouperInterface $grouper, AssetOptimizerInterface $optimizer, AssetDumperInterface $dumper, StateInterface $state) {
  $this->grouper = $grouper;
  $this->optimizer = $optimizer;
  $this->dumper = $dumper;
  $this->state = $state;
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Asset!CssCollectionOptimizer.php/function/CssCollectionOptimizer::__construct/8.1.x