Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / modules / action / src / ActionFormBase.php
index 46b70ede45a55e60736784272eea513bc8c8f324..db878a9453090c892a6689d005cba7ab00771b3c 100644 (file)
@@ -132,7 +132,7 @@ abstract class ActionFormBase extends EntityForm {
    */
   public function save(array $form, FormStateInterface $form_state) {
     $this->entity->save();
-    drupal_set_message($this->t('The action has been successfully saved.'));
+    $this->messenger()->addStatus($this->t('The action has been successfully saved.'));
 
     $form_state->setRedirect('entity.action.collection');
   }