You are here

public function SearchPageListBuilder::submitAddSearchPage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/search/src/SearchPageListBuilder.php \Drupal\search\SearchPageListBuilder::submitAddSearchPage()

Form submission handler for adding a new search page.

File

core/modules/search/src/SearchPageListBuilder.php, line 374
Contains \Drupal\search\SearchPageListBuilder.

Class

SearchPageListBuilder
Defines a class to build a listing of search page entities.

Namespace

Drupal\search

Code

public function submitAddSearchPage(array &$form, FormStateInterface $form_state) {
  $form_state
    ->setRedirect('search.add_type', array(
    'search_plugin_id' => $form_state
      ->getValue('search_type'),
  ));
}