Same name in other branches
- 5.0.x advagg_mod/src/Asset/DeferCss.php \Drupal\advagg_mod\Asset\DeferCss::__construct()
- 8.x-3.x advagg_mod/src/Asset/DeferCss.php \Drupal\advagg_mod\Asset\DeferCss::__construct()
- 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.
ExtensionList $module_extension_list: The module extension list service.
Fichier
-
advagg_mod/
src/ Asset/ DeferCss.php, line 50
Classe
- DeferCss
- Modify stylesheet links to defer them. May lead to Flash of unstyled content.
Namespace
Drupal\advagg_mod\AssetCode
public function __construct(ConfigFactoryInterface $config_factory, ExtensionList $module_extension_list) {
$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');
$this->moduleExtensionList = $module_extension_list;
}