comparison 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
comparison
equal deleted inserted replaced
16:c2387f117808 17:129ea1e6d783
130 /** 130 /**
131 * {@inheritdoc} 131 * {@inheritdoc}
132 */ 132 */
133 public function save(array $form, FormStateInterface $form_state) { 133 public function save(array $form, FormStateInterface $form_state) {
134 $this->entity->save(); 134 $this->entity->save();
135 drupal_set_message($this->t('The action has been successfully saved.')); 135 $this->messenger()->addStatus($this->t('The action has been successfully saved.'));
136 136
137 $form_state->setRedirect('entity.action.collection'); 137 $form_state->setRedirect('entity.action.collection');
138 } 138 }
139 139
140 /** 140 /**