Same name in other branches
- 5.0.x advagg_mod/src/Asset/DeferCss.php \Drupal\advagg_mod\Asset\DeferCss::__construct()
- 6.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()
DeferCss constructor.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The config factory.
File
-
advagg_mod/
src/ Asset/ DeferCss.php, line 40
Class
- 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) {
$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');
}