Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / lib / Drupal / Core / Entity / EntityDeleteFormTrait.php
index 2faf45c44a358625086e5a27e77600c241173aae..976119057286b80a15765ec75020b9417a4ff24c 100644 (file)
@@ -120,7 +120,7 @@ trait EntityDeleteFormTrait {
    */
   public function submitForm(array &$form, FormStateInterface $form_state) {
     $this->getEntity()->delete();
-    drupal_set_message($this->getDeletionMessage());
+    $this->messenger()->addStatus($this->getDeletionMessage());
     $form_state->setRedirectUrl($this->getCancelUrl());
     $this->logDeletionMessage();
   }