You are here

public function LegacyBackend::garbageCollection in Service Container 7.2

Same name and namespace in other branches
  1. 7 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\Flood

Code

public function garbageCollection() {
  return $this->connection
    ->delete('flood')
    ->condition('expiration', REQUEST_TIME, '<')
    ->execute();
}