You are here

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

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

\Drupal\Core\Cache\CacheBackendInterface $cache: The advagg cache.

\Drupal\Component\Datetime\TimeInterface $time: Obtaining system time.

Overrides ConfigFormBase::__construct

File

src/Form/SettingsForm.php, line 74

Class

SettingsForm
Configure advagg settings for this site.

Namespace

Drupal\advagg\Form

Code

public function __construct(ConfigFactoryInterface $config_factory, DateFormatterInterface $date_formatter, StateInterface $state, ModuleHandlerInterface $module_handler, CacheBackendInterface $cache, TimeInterface $time) {
  parent::__construct($config_factory);
  $this->dateFormatter = $date_formatter;
  $this->state = $state;
  $this->moduleHandler = $module_handler;
  $this->cache = $cache;
  $this->time = $time;
}