function JsOptimizer::__construct
Constructs a new JsOptimizer object.
Parameters
\Psr\Log\LoggerInterface $logger: The logger.
File
-
core/
lib/ Drupal/ Core/ Asset/ JsOptimizer.php, line 24
Class
- JsOptimizer
- Optimizes a JavaScript asset.
Namespace
Drupal\Core\AssetCode
public function __construct(protected readonly LoggerInterface $logger) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.