protected function DatabaseStorageExpirable::garbageCollection in Service Container 7
Same name and namespace in other branches
- 7.2 lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php \Drupal\Core\KeyValueStore\DatabaseStorageExpirable::garbageCollection()
Deletes expired items.
1 call to DatabaseStorageExpirable::garbageCollection()
- DatabaseStorageExpirable::destruct in lib/
Drupal/ Core/ KeyValueStore/ DatabaseStorageExpirable.php - Implements Drupal\Core\DestructableInterface::destruct().
File
- lib/
Drupal/ Core/ KeyValueStore/ DatabaseStorageExpirable.php, line 151 - Contains \Drupal\Core\KeyValueStore\DatabaseStorageExpirable.
Class
- DatabaseStorageExpirable
- Defines a default key/value store implementation for expiring items.
Namespace
Drupal\Core\KeyValueStoreCode
protected function garbageCollection() {
$this->connection
->delete($this->table)
->condition('expire', REQUEST_TIME, '<')
->execute();
}