Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / search / src / Form / SearchPageAddForm.php
index 6f5c142d6e41ddd5ca5029d7a0ad8127d4a13274..492d6c0af734fdbcf87d73d5f665cdda47ae84ae 100644 (file)
@@ -41,7 +41,7 @@ class SearchPageAddForm extends SearchPageFormBase {
 
     parent::save($form, $form_state);
 
-    drupal_set_message($this->t('The %label search page has been added.', ['%label' => $this->entity->label()]));
+    $this->messenger()->addStatus($this->t('The %label search page has been added.', ['%label' => $this->entity->label()]));
   }
 
 }