summaryrefslogtreecommitdiffstats
path: root/core/modules/dblog/src/Form/DblogClearLogConfirmForm.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/dblog/src/Form/DblogClearLogConfirmForm.php')
-rw-r--r--core/modules/dblog/src/Form/DblogClearLogConfirmForm.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/dblog/src/Form/DblogClearLogConfirmForm.php b/core/modules/dblog/src/Form/DblogClearLogConfirmForm.php
index 46344eb..e567729 100644
--- a/core/modules/dblog/src/Form/DblogClearLogConfirmForm.php
+++ b/core/modules/dblog/src/Form/DblogClearLogConfirmForm.php
@@ -68,7 +68,7 @@ class DblogClearLogConfirmForm extends ConfirmFormBase {
public function submitForm(array &$form, FormStateInterface $form_state) {
$_SESSION['dblog_overview_filter'] = [];
$this->connection->truncate('watchdog')->execute();
- drupal_set_message($this->t('Database log cleared.'));
+ $this->messenger()->addStatus($this->t('Database log cleared.'));
$form_state->setRedirectUrl($this->getCancelUrl());
}