summaryrefslogtreecommitdiffstats
path: root/core/modules/action/src/ActionFormBase.php
diff options
context:
space:
mode:
Diffstat (limited to 'core/modules/action/src/ActionFormBase.php')
-rw-r--r--core/modules/action/src/ActionFormBase.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/modules/action/src/ActionFormBase.php b/core/modules/action/src/ActionFormBase.php
index 46b70ed..db878a9 100644
--- a/core/modules/action/src/ActionFormBase.php
+++ b/core/modules/action/src/ActionFormBase.php
@@ -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');
}