Construct the DatabaseBackend.
Parameters
\Drupal\Core\Database\Connection $connection:
The database connection which will be used to store the flood event
information.
File
- drupal/core/lib/Drupal/Core/Flood/DatabaseBackend.php, line 31
- Definition of Drupal\Core\Flood\DatabaseBackend.
Class
- DatabaseBackend
- Defines the database flood backend. This is the default Drupal backend.
Namespace
Drupal\Core\Flood
Code
public function __construct(Connection $connection) {
$this->connection = $connection;
}