public function FloodControlSettingsForm::__construct in Flood control 2.0.x
Same name and namespace in other branches
- 1.0.x src/Form/FloodControlSettingsForm.php \Drupal\flood_control\Form\FloodControlSettingsForm::__construct()
Constructs a \Drupal\system\ConfigFormBase object.
Parameters
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The factory for configuration objects.
Overrides ConfigFormBase::__construct
File
- src/
Form/ FloodControlSettingsForm.php, line 35
Class
- FloodControlSettingsForm
- Administration settings form.
Namespace
Drupal\flood_control\FormCode
public function __construct(ConfigFactoryInterface $config_factory, DateFormatterInterface $dateFormatter, ModuleHandlerInterface $module_handler) {
parent::__construct($config_factory);
$this->dateFormatter = $dateFormatter;
$this->moduleHandler = $module_handler;
}