You are here

public function PerformanceForm::submitCacheClear in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 core/modules/system/src/Form/PerformanceForm.php \Drupal\system\Form\PerformanceForm::submitCacheClear()

Clears the caches.

File

core/modules/system/src/Form/PerformanceForm.php, line 193
Contains \Drupal\system\Form\PerformanceForm.

Class

PerformanceForm
Configure performance settings for this site.

Namespace

Drupal\system\Form

Code

public function submitCacheClear(array &$form, FormStateInterface $form_state) {
  drupal_flush_all_caches();
  drupal_set_message(t('Caches cleared.'));
}