Defines the database flood backend. This is the default Drupal backend.
Hierarchy
- class \Drupal\Core\Flood\DatabaseBackend implements FloodInterface
File
- core/lib/Drupal/Core/Flood/DatabaseBackend.php, line 12
Namespace
Drupal\Core\Flood
Members
Name | Modifiers | Type | Description |
---|---|---|---|
DatabaseBackend::$connection | protected | property | The database connection used to store flood event information. |
DatabaseBackend::$requestStack | protected | property | The request stack. |
DatabaseBackend::catchException | protected | function | Act on an exception when flood might be stale. |
DatabaseBackend::clear | public | function | Makes the flood control mechanism forget an event for the current visitor. Overrides FloodInterface::clear |
DatabaseBackend::doInsert | protected | function | Inserts an event into the flood table |
DatabaseBackend::ensureTableExists | protected | function | Check if the flood table exists and create it if not. |
DatabaseBackend::garbageCollection | public | function | Cleans up expired flood events. This method is called automatically on cron run. Overrides FloodInterface::garbageCollection |
DatabaseBackend::isAllowed | public | function | Checks whether a user is allowed to proceed with the specified event. Overrides FloodInterface::isAllowed |
DatabaseBackend::register | public | function | Registers an event for the current visitor to the flood control mechanism. Overrides FloodInterface::register |
DatabaseBackend::schemaDefinition | public | function | Defines the schema for the flood table. |
DatabaseBackend::TABLE_NAME | constant | The database table name. | |
DatabaseBackend::__construct | public | function | Construct the DatabaseBackend. |
Please login to continue.