summaryrefslogtreecommitdiffstats
path: root/core/modules/system/src/Form/PerformanceForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/system/src/Form/PerformanceForm.php')
-rw-r--r--core/modules/system/src/Form/PerformanceForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/system/src/Form/PerformanceForm.php b/core/modules/system/src/Form/PerformanceForm.php
index 0e5c784..9d19b75 100644
--- a/core/modules/system/src/Form/PerformanceForm.php
+++ b/core/modules/system/src/Form/PerformanceForm.php
@@ -190,7 +190,7 @@ class PerformanceForm extends ConfigFormBase {
*/
public function submitCacheClear(array &$form, FormStateInterface $form_state) {
drupal_flush_all_caches();
- drupal_set_message(t('Caches cleared.'));
+ $this->messenger()->addStatus($this->t('Caches cleared.'));
}
}