You are here

public function JsCollectionRenderer::__construct in Advanced CSS/JS Aggregation 8.2

Parameters

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

Overrides JsCollectionRenderer::__construct

File

src/Asset/JsCollectionRenderer.php, line 29

Class

JsCollectionRenderer

Namespace

Drupal\advagg\Asset

Code

public function __construct(StateInterface $state, ConfigFactoryInterface $config_factory) {
  $this->state = $state;
  $this->config = $config_factory
    ->get('advagg.settings');
}