Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / dblog / src / Form / DblogClearLogConfirmForm.php
index 46344eba06543f2debf6ec2c1775d3c0dc3d76e9..e567729b36a1503851d256aaa229af9706e9475d 100644 (file)
@@ -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());
   }