public function DatabaseProfilerStorage::purge in Devel 8
Same name and namespace in other branches
- 8.3 webprofiler/src/Profiler/DatabaseProfilerStorage.php \Drupal\webprofiler\Profiler\DatabaseProfilerStorage::purge()
- 8.2 webprofiler/src/Profiler/DatabaseProfilerStorage.php \Drupal\webprofiler\Profiler\DatabaseProfilerStorage::purge()
- 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\ProfilerCode
public function purge() {
$this->database
->truncate('webprofiler')
->execute();
}