Mercurial > hg > cmmr2012-drupal-site
diff core/modules/views_ui/src/ViewAddForm.php @ 4:a9cd425dd02b
Update, including to Drupal core 8.6.10
author | Chris Cannam |
---|---|
date | Thu, 28 Feb 2019 13:11:55 +0000 |
parents | c75dbcec494b |
children | 12f9dff5fda9 |
line wrap: on
line diff
--- a/core/modules/views_ui/src/ViewAddForm.php Thu Feb 28 11:14:44 2019 +0000 +++ b/core/modules/views_ui/src/ViewAddForm.php Thu Feb 28 13:11:55 2019 +0000 @@ -184,12 +184,12 @@ } // @todo Figure out whether it really makes sense to throw and catch exceptions on the wizard. catch (WizardException $e) { - drupal_set_message($e->getMessage(), 'error'); + $this->messenger()->addError($e->getMessage()); $form_state->setRedirect('entity.view.collection'); return; } $this->entity->save(); - drupal_set_message($this->t('The view %name has been saved.', ['%name' => $form_state->getValue('label')])); + $this->messenger()->addStatus($this->t('The view %name has been saved.', ['%name' => $form_state->getValue('label')])); $form_state->setRedirectUrl($this->entity->urlInfo('edit-form')); }