You are here

public function DatabaseStorageExpirable::destruct in Service Container 7.2

Same name and namespace in other branches
  1. 7 lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php \Drupal\Core\KeyValueStore\DatabaseStorageExpirable::destruct()

Implements Drupal\Core\DestructableInterface::destruct().

Overrides DestructableInterface::destruct

File

lib/Drupal/Core/KeyValueStore/DatabaseStorageExpirable.php, line 160
Contains \Drupal\Core\KeyValueStore\DatabaseStorageExpirable.

Class

DatabaseStorageExpirable
Defines a default key/value store implementation for expiring items.

Namespace

Drupal\Core\KeyValueStore

Code

public function destruct() {
  if ($this->needsGarbageCollection) {
    $this
      ->garbageCollection();
  }
}