public function LegacyBackend::garbageCollection in Service Container 7
Same name and namespace in other branches
- 7.2 src/Flood/LegacyBackend.php \Drupal\service_container\Flood\LegacyBackend::garbageCollection()
Implements Drupal\Core\Flood\FloodInterface::garbageCollection().
Overrides FloodInterface::garbageCollection
File
- src/
Flood/ LegacyBackend.php, line 111 - Definition of Drupal\service_container\Flood\LegacyBackend.
Class
- LegacyBackend
- Defines the database flood backend. This is the default Drupal backend. @codeCoverageIgnore
Namespace
Drupal\service_container\FloodCode
public function garbageCollection() {
return $this->connection
->delete('flood')
->condition('expiration', REQUEST_TIME, '<')
->execute();
}