Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / search / src / Form / SearchPageEditForm.php
index afbcfbc360ee7bdd8542eaa0cb51825a1fe27cb1..28fda7f958abdc7337aa9ef16fcdc654ba0f2249 100644 (file)
@@ -26,7 +26,7 @@ class SearchPageEditForm extends SearchPageFormBase {
   public function save(array $form, FormStateInterface $form_state) {
     parent::save($form, $form_state);
 
-    drupal_set_message($this->t('The %label search page has been updated.', ['%label' => $this->entity->label()]));
+    $this->messenger()->addStatus($this->t('The %label search page has been updated.', ['%label' => $this->entity->label()]));
   }
 
 }