diff --git a/core/modules/views/src/Tests/Wizard/BasicTest.php b/core/modules/views/src/Tests/Wizard/BasicTest.php index fe736ded7aa7949e6694f9d2ca71063862aa4f30..32f570e4c9685729693faaf7fd2ef1f1b2ed83b0 100644 --- a/core/modules/views/src/Tests/Wizard/BasicTest.php +++ b/core/modules/views/src/Tests/Wizard/BasicTest.php @@ -158,6 +158,7 @@ function testViewsWizardAndListing() { $view4['rest_export[create]'] = 1; $view4['rest_export[path]'] = $this->randomMachineName(16); $this->drupalPostForm('admin/structure/views/add', $view4, t('Save and edit')); + $this->assertRaw(t('The view %view has been saved.', array('%view' => $view4['label']))); // Check that the REST export path works. $this->drupalGet($view4['rest_export[path]']); diff --git a/core/modules/views_ui/src/ViewAddForm.php b/core/modules/views_ui/src/ViewAddForm.php index 5b816d93cb733dcc1540c70b6fbbfe8c63f05b1d..1cb976e1bb0fe46a5efa7a6c3f47c83abeef9f0d 100644 --- a/core/modules/views_ui/src/ViewAddForm.php +++ b/core/modules/views_ui/src/ViewAddForm.php @@ -192,7 +192,7 @@ public function submitForm(array &$form, FormStateInterface $form_state) { return; } $this->entity->save(); - + drupal_set_message($this->t('The view %name has been saved.', array('%name' => $form_state->getValue('label')))); $form_state->setRedirectUrl($this->entity->urlInfo('edit-form')); }