SearchPageListBuilder::submitAddSearchPage

public SearchPageListBuilder::submitAddSearchPage(array &$form, FormStateInterface $form_state)

Form submission handler for adding a new search page.

File

core/modules/search/src/SearchPageListBuilder.php, line 369

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'))
  );
}
doc_Drupal
2016-10-29 09:40:42
Comments
Leave a Comment

Please login to continue.