diff --git a/core/modules/search/src/Form/SearchPageAddForm.php b/core/modules/search/src/Form/SearchPageAddForm.php index 720250285dad276d447ea7a859c9a96a0a09e7c5..a97f1fa5eff9b70dfa8b8f38f3e69cb90c364cbb 100644 --- a/core/modules/search/src/Form/SearchPageAddForm.php +++ b/core/modules/search/src/Form/SearchPageAddForm.php @@ -24,7 +24,7 @@ public function buildForm(array $form, FormStateInterface $form_state, $search_p */ protected function actions(array $form, FormStateInterface $form_state) { $actions = parent::actions($form, $form_state); - $actions['submit']['#value'] = $this->t('Add search page'); + $actions['submit']['#value'] = $this->t('Save'); return $actions; } diff --git a/core/modules/search/src/SearchPageListBuilder.php b/core/modules/search/src/SearchPageListBuilder.php index afbf54cbc9441dfb1f1b8603bbbf5df62cdd73cc..c76a999aa91e9e80d63b9f3adec6af9327aa3f54 100644 --- a/core/modules/search/src/SearchPageListBuilder.php +++ b/core/modules/search/src/SearchPageListBuilder.php @@ -269,7 +269,7 @@ public function buildForm(array $form, FormStateInterface $form_state) { ); $form['search_pages']['add_page']['add_search_submit'] = array( '#type' => 'submit', - '#value' => $this->t('Add new page'), + '#value' => $this->t('Add search page'), '#validate' => array('::validateAddSearchPage'), '#submit' => array('::submitAddSearchPage'), '#limit_validation_errors' => array(array('search_type')), diff --git a/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php b/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php index c458b163d6294935a9fe8081f110ac6155c0d3a0..9ca87d61987f40ef15fa4a9013c231bd6fe82083 100644 --- a/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php +++ b/core/modules/search/src/Tests/SearchConfigSettingsFormTest.php @@ -237,26 +237,26 @@ public function testMultipleSearchPages() { // Add a search page. $edit = array(); $edit['search_type'] = 'search_extra_type_search'; - $this->drupalPostForm(NULL, $edit, t('Add new page')); + $this->drupalPostForm(NULL, $edit, t('Add search page')); $this->assertTitle('Add new search page | Drupal'); $first = array(); $first['label'] = $this->randomString(); $first_id = $first['id'] = strtolower($this->randomMachineName(8)); $first['path'] = strtolower($this->randomMachineName(8)); - $this->drupalPostForm(NULL, $first, t('Add search page')); + $this->drupalPostForm(NULL, $first, t('Save')); $this->assertDefaultSearch($first_id, 'The default page matches the only search page.'); $this->assertRaw(t('The %label search page has been added.', array('%label' => $first['label']))); // Attempt to add a search page with an existing path. $edit = array(); $edit['search_type'] = 'search_extra_type_search'; - $this->drupalPostForm(NULL, $edit, t('Add new page')); + $this->drupalPostForm(NULL, $edit, t('Add search page')); $edit = array(); $edit['label'] = $this->randomString(); $edit['id'] = strtolower($this->randomMachineName(8)); $edit['path'] = $first['path']; - $this->drupalPostForm(NULL, $edit, t('Add search page')); + $this->drupalPostForm(NULL, $edit, t('Save')); $this->assertText(t('The search page path must be unique.')); // Add a second search page. @@ -264,7 +264,7 @@ public function testMultipleSearchPages() { $second['label'] = $this->randomString(); $second_id = $second['id'] = strtolower($this->randomMachineName(8)); $second['path'] = strtolower($this->randomMachineName(8)); - $this->drupalPostForm(NULL, $second, t('Add search page')); + $this->drupalPostForm(NULL, $second, t('Save')); $this->assertDefaultSearch($first_id, 'The default page matches the only search page.'); // Ensure both search pages have their tabs displayed.