Defines the memory flood backend. This is used for testing.
Hierarchy
- class \Drupal\Core\Flood\MemoryBackend implements FloodInterface
File
- core/lib/Drupal/Core/Flood/MemoryBackend.php, line 10
Namespace
Drupal\Core\Flood
Members
Name | Modifiers | Type | Description |
---|---|---|---|
MemoryBackend::$events | protected | property | An array holding flood events, keyed by event name and identifier. |
MemoryBackend::$requestStack | protected | property | The request stack. |
MemoryBackend::clear | public | function | Makes the flood control mechanism forget an event for the current visitor. Overrides FloodInterface::clear |
MemoryBackend::garbageCollection | public | function | Cleans up expired flood events. This method is called automatically on cron run. Overrides FloodInterface::garbageCollection |
MemoryBackend::isAllowed | public | function | Checks whether a user is allowed to proceed with the specified event. Overrides FloodInterface::isAllowed |
MemoryBackend::register | public | function | Registers an event for the current visitor to the flood control mechanism. Overrides FloodInterface::register |
MemoryBackend::__construct | public | function | Construct the MemoryBackend. |
Please login to continue.