function FloodInterface::garbageCollection
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Flood/FloodInterface.php \Drupal\Core\Flood\FloodInterface::garbageCollection()
- 10 core/lib/Drupal/Core/Flood/FloodInterface.php \Drupal\Core\Flood\FloodInterface::garbageCollection()
- 11.x core/lib/Drupal/Core/Flood/FloodInterface.php \Drupal\Core\Flood\FloodInterface::garbageCollection()
Cleans up expired flood events.
This method is called automatically on cron run.
See also
2 methods override FloodInterface::garbageCollection()
- DatabaseBackend::garbageCollection in core/
lib/ Drupal/ Core/ Flood/ DatabaseBackend.php - Cleans up expired flood events.
- MemoryBackend::garbageCollection in core/
lib/ Drupal/ Core/ Flood/ MemoryBackend.php - Cleans up expired flood events.
File
-
core/
lib/ Drupal/ Core/ Flood/ FloodInterface.php, line 70
Class
- FloodInterface
- Defines an interface for flood controllers.
Namespace
Drupal\Core\FloodCode
public function garbageCollection();
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.