public JsCollectionOptimizer::__construct(AssetCollectionGrouperInterface $grouper, AssetOptimizerInterface $optimizer, AssetDumperInterface $dumper, StateInterface $state)
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.
File
- core/lib/Drupal/Core/Asset/JsCollectionOptimizer.php, line 53
Class
- JsCollectionOptimizer
- Optimizes JavaScript assets.
Namespace
Drupal\Core\Asset
Code
1 2 3 4 5 6 | public function __construct(AssetCollectionGrouperInterface $grouper , AssetOptimizerInterface $optimizer , AssetDumperInterface $dumper , StateInterface $state ) { $this ->grouper = $grouper ; $this ->optimizer = $optimizer ; $this ->dumper = $dumper ; $this ->state = $state ; } |
Please login to continue.