public function FloodSettings::__construct in Flood settings 8
FloodSettings constructor.
Parameters
\Drupal\Core\Datetime\DateFormatterInterface $date_formatter: DateFormatterInterface Object.
\Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory service.
Overrides ConfigFormBase::__construct
File
- src/
Form/ FloodSettings.php, line 39
Class
- FloodSettings
- Class FloodSettings.
Namespace
Drupal\flood_settings\FormCode
public function __construct(DateFormatterInterface $date_formatter, ConfigFactoryInterface $config_factory) {
parent::__construct($config_factory);
$this->dateFormatter = $date_formatter;
}