public function StatisticsSettingsForm::__construct in Drupal 9
Same name and namespace in other branches
- 8 core/modules/statistics/src/StatisticsSettingsForm.php \Drupal\statistics\StatisticsSettingsForm::__construct()
- 10 core/modules/statistics/src/StatisticsSettingsForm.php \Drupal\statistics\StatisticsSettingsForm::__construct()
Constructs a \Drupal\statistics\StatisticsSettingsForm object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
Overrides ConfigFormBase::__construct
File
- core/
modules/ statistics/ src/ StatisticsSettingsForm.php, line 33
Class
- StatisticsSettingsForm
- Configure statistics settings for this site.
Namespace
Drupal\statisticsCode
public function __construct(ConfigFactoryInterface $config_factory, ModuleHandlerInterface $module_handler) {
parent::__construct($config_factory);
$this->moduleHandler = $module_handler;
}