public function InitSubscriber::__construct in Advanced CSS/JS Aggregation 8.2
Same name and namespace in other branches
- 8.4 advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber::__construct()
- 8.3 advagg_mod/src/EventSubscriber/InitSubscriber.php \Drupal\advagg_mod\EventSubscriber\InitSubscriber::__construct()
Constructs the Subscriber object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: A config factory for retrieving required config objects.
File
- advagg_mod/
src/ EventSubscriber/ InitSubscriber.php, line 34
Class
- InitSubscriber
- Perform initialization tasks for advagg_mod.
Namespace
Drupal\advagg_mod\EventSubscriberCode
public function __construct(ConfigFactoryInterface $config_factory) {
$this->config = $config_factory
->get('advagg.settings');
$this->advaggConfig = $config_factory
->getEditable('advagg.settings');
}