You are here

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

Same name in this branch
  1. 8.2 src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::__construct()
  2. 8.2 advagg_ext_minify/src/Form/SettingsForm.php \Drupal\advagg_ext_minify\Form\SettingsForm::__construct()
  3. 8.2 advagg_mod/src/Form/SettingsForm.php \Drupal\advagg_mod\Form\SettingsForm::__construct()
  4. 8.2 advagg_css_minify/src/Form/SettingsForm.php \Drupal\advagg_css_minify\Form\SettingsForm::__construct()
  5. 8.2 advagg_js_minify/src/Form/SettingsForm.php \Drupal\advagg_js_minify\Form\SettingsForm::__construct()
  6. 8.2 advagg_cdn/src/Form/SettingsForm.php \Drupal\advagg_cdn\Form\SettingsForm::__construct()
  7. 8.2 advagg_bundler/src/Form/SettingsForm.php \Drupal\advagg_bundler\Form\SettingsForm::__construct()
Same name and namespace in other branches
  1. 8.3 src/Form/SettingsForm.php \Drupal\advagg\Form\SettingsForm::__construct()

Constructs a SettingsForm object.

Parameters

\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.

\Drupal\Core\Asset\AssetCollectionOptimizerInterface $css_collection_optimizer: The CSS asset collection optimizer service.

\Drupal\Core\Asset\AssetCollectionOptimizerInterface $js_collection_optimizer: The JavaScript asset collection optimizer service.

\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: The Date formatter service.

\Drupal\Core\State\StateInterface $state: The state service.

\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler service.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 72

Class

SettingsForm
Configure advagg settings for this site.

Namespace

Drupal\advagg\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, AssetCollectionOptimizerInterface $css_collection_optimizer, AssetCollectionOptimizerInterface $js_collection_optimizer, DateFormatterInterface $date_formatter, StateInterface $state, ModuleHandlerInterface $module_handler) {
  parent::__construct($config_factory);
  $this->cssCollectionOptimizer = $css_collection_optimizer;
  $this->jsCollectionOptimizer = $js_collection_optimizer;
  $this->dateFormatter = $date_formatter;
  $this->state = $state;
  $this->moduleHandler = $module_handler;
}