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

DeferCss constructor.

Paramètres

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.

Fichier

advagg_mod/src/Asset/DeferCss.php, line 40

Classe

DeferCss
Modify stylesheet links to defer them. May lead to Flash of unstyled content.

Namespace

Drupal\advagg_mod\Asset

Code

public function __construct(ConfigFactoryInterface $config_factory) {
    $this->deferMethod = $config_factory->get('advagg_mod.settings')
        ->get('css_defer_js_code');
    $this->counter = $config_factory->get('advagg.settings')
        ->get('global_counter');
    $this->external = $config_factory->get('advagg_mod.settings')
        ->get('css_defer_external');
}