Same name and namespace in other branches
  1. 5.0.x advagg_mod/src/Asset/TranslateCss.php \Drupal\advagg_mod\Asset\TranslateCss::__construct() 1 commentaire
  2. 8.x-3.x advagg_mod/src/Asset/TranslateCss.php \Drupal\advagg_mod\Asset\TranslateCss::__construct() 1 commentaire
  3. 8.x-4.x advagg_mod/src/Asset/TranslateCss.php \Drupal\advagg_mod\Asset\TranslateCss::__construct() 1 commentaire

Construct the optimizer instance.

Paramètres

\Psr\Log\LoggerInterface $logger: The logger service.

\Drupal\Core\File\FileUrlGeneratorInterface $file_url_generator: The file URL generator.

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.

Overrides SingleAssetOptimizerBase::__construct

Fichier

advagg_mod/src/Asset/TranslateCss.php, line 28

Classe

TranslateCss
Applies the t() function to strings in CSS assets.

Namespace

Drupal\advagg_mod\Asset

Code

public function __construct(LoggerInterface $logger, FileUrlGeneratorInterface $file_url_generator, ConfigFactoryInterface $config_factory) {
    parent::__construct($logger, $file_url_generator);
    $this->config = $config_factory->get('advagg_mod.settings');
}