You are here

public function FloodUnblockAdminForm::__construct in Flood control 2.0.x

FloodUnblockAdminForm constructor.

Parameters

\Drupal\flood_control\FloodUnblockManager $floodUnblockManager: The FloodUnblockManager service.

\Drupal\Core\Database\Connection $database: The database connection.

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

File

src/Form/FloodUnblockAdminForm.php, line 56

Class

FloodUnblockAdminForm
Admin form of Flood Unblock.

Namespace

Drupal\flood_control\Form

Code

public function __construct(FloodUnblockManager $floodUnblockManager, Connection $database, DateFormatterInterface $date_formatter) {
  $this->floodUnblockManager = $floodUnblockManager;
  $this->database = $database;
  $this->dateFormatter = $date_formatter;
  $this->userFloodConfig = $this
    ->configFactory()
    ->get('user.flood');
}