Commit 8f9ece97 authored by alexpott's avatar alexpott

Issue #1949032 by irfworld, geertvd, dawehner: Add a message when a view saved...

Issue #1949032 by irfworld, geertvd, dawehner: Add a message when a view saved during wizard creation
parent 151da1a2
......@@ -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]']);
......
......@@ -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'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment