You are here

public function ConfigForm::purge in Devel 8

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

Purges profiles.

File

webprofiler/src/Form/ConfigForm.php, line 208

Class

ConfigForm
Class ConfigForm

Namespace

Drupal\webprofiler\Form

Code

public function purge(array &$form, FormStateInterface $form_state) {
  $this->profiler
    ->purge();
  drupal_set_message($this
    ->t('Profiles purged'));
}