CssCollectionOptimizer::__construct

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

Constructs a CssCollectionOptimizer.

Parameters

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

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

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

\Drupal\Core\State\StateInterface $state: 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;
}
doc_Drupal
2016-10-29 08:59:15
Comments
Leave a Comment

Please login to continue.