function JsCollectionOptimizer::__construct
Same name in other branches
- 9 core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php \Drupal\Core\Asset\JsCollectionOptimizer::__construct()
- 8.9.x core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php \Drupal\Core\Asset\JsCollectionOptimizer::__construct()
Constructs a JsCollectionOptimizer.
Parameters
\Drupal\Core\Asset\AssetCollectionGrouperInterface $grouper: The grouper for JS assets.
\Drupal\Core\Asset\AssetOptimizerInterface $optimizer: The optimizer for a single JS asset.
\Drupal\Core\Asset\AssetDumperInterface $dumper: The dumper for optimized JS assets.
\Drupal\Core\State\StateInterface $state: The state key/value store.
\Drupal\Core\File\FileSystemInterface $file_system: The file system service.
File
-
core/
lib/ Drupal/ Core/ Asset/ JsCollectionOptimizer.php, line 69
Class
- JsCollectionOptimizer
- Optimizes JavaScript assets.
Namespace
Drupal\Core\AssetCode
public function __construct(AssetCollectionGrouperInterface $grouper, AssetOptimizerInterface $optimizer, AssetDumperInterface $dumper, StateInterface $state, FileSystemInterface $file_system) {
$this->grouper = $grouper;
$this->optimizer = $optimizer;
$this->dumper = $dumper;
$this->state = $state;
$this->fileSystem = $file_system;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.