Same name in other branches
- 6.0.x advagg_mod/src/Asset/TranslateCss.php \Drupal\advagg_mod\Asset\TranslateCss::__construct()
- 8.x-3.x advagg_mod/src/Asset/TranslateCss.php \Drupal\advagg_mod\Asset\TranslateCss::__construct()
- 8.x-4.x advagg_mod/src/Asset/TranslateCss.php \Drupal\advagg_mod\Asset\TranslateCss::__construct()
Construct the optimizer instance.
Parameters
\Psr\Log\LoggerInterface $logger: The logger service.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.
Overrides SingleAssetOptimizerBase::__construct
File
-
advagg_mod/
src/ Asset/ TranslateCss.php, line 25
Class
- TranslateCss
- Applies the t() function to strings in CSS assets.
Namespace
Drupal\advagg_mod\AssetCode
public function __construct(LoggerInterface $logger, ConfigFactoryInterface $config_factory) {
parent::__construct($logger);
$this->config = $config_factory->get('advagg_mod.settings');
}