diff core/modules/action/src/ActionFormBase.php @ 17:129ea1e6d783

Update, including to Drupal core 8.6.10
author Chris Cannam
date Thu, 28 Feb 2019 13:21:36 +0000
parents 1fec387a4317
children
line wrap: on
line diff
--- a/core/modules/action/src/ActionFormBase.php	Tue Jul 10 15:07:59 2018 +0100
+++ b/core/modules/action/src/ActionFormBase.php	Thu Feb 28 13:21:36 2019 +0000
@@ -132,7 +132,7 @@
    */
   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');
   }