public function PerformanceForm::submitCacheClear in Drupal 10
Same name and namespace in other branches
- 8 core/modules/system/src/Form/PerformanceForm.php \Drupal\system\Form\PerformanceForm::submitCacheClear()
- 9 core/modules/system/src/Form/PerformanceForm.php \Drupal\system\Form\PerformanceForm::submitCacheClear()
Clears the caches.
File
- core/
modules/ system/ src/ Form/ PerformanceForm.php, line 191
Class
- PerformanceForm
- Configure performance settings for this site.
Namespace
Drupal\system\FormCode
public function submitCacheClear(array &$form, FormStateInterface $form_state) {
drupal_flush_all_caches();
$this
->messenger()
->addStatus($this
->t('Caches cleared.'));
}