You are here

public function DatabaseProfilerStorage::purge in Devel 8

Same name and namespace in other branches
  1. 8.3 webprofiler/src/Profiler/DatabaseProfilerStorage.php \Drupal\webprofiler\Profiler\DatabaseProfilerStorage::purge()
  2. 8.2 webprofiler/src/Profiler/DatabaseProfilerStorage.php \Drupal\webprofiler\Profiler\DatabaseProfilerStorage::purge()
  3. 4.x webprofiler/src/Profiler/DatabaseProfilerStorage.php \Drupal\webprofiler\Profiler\DatabaseProfilerStorage::purge()

File

webprofiler/src/Profiler/DatabaseProfilerStorage.php, line 137

Class

DatabaseProfilerStorage
Implements a profiler storage using the DBTNG query api.

Namespace

Drupal\webprofiler\Profiler

Code

public function purge() {
  $this->database
    ->truncate('webprofiler')
    ->execute();
}