function SearchPageListBuilder::searchAdminReindexSubmit

Same name in other branches
  1. 9 core/modules/search/src/SearchPageListBuilder.php \Drupal\search\SearchPageListBuilder::searchAdminReindexSubmit()
  2. 8.9.x core/modules/search/src/SearchPageListBuilder.php \Drupal\search\SearchPageListBuilder::searchAdminReindexSubmit()
  3. 10 core/modules/search/src/SearchPageListBuilder.php \Drupal\search\SearchPageListBuilder::searchAdminReindexSubmit()

Form submission handler for reindex button on search admin settings form.

File

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

Class

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

Namespace

Drupal\search

Code

public function searchAdminReindexSubmit(array &$form, FormStateInterface $form_state) {
    // Send the user to the confirmation page.
    $form_state->setRedirect('search.reindex_confirm');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.