public function SearchPageListBuilder::searchAdminReindexSubmit in Drupal 9
Same name and namespace in other branches
- 8 core/modules/search/src/SearchPageListBuilder.php \Drupal\search\SearchPageListBuilder::searchAdminReindexSubmit()
Form submission handler for the reindex button on the search admin settings form.
File
- core/
modules/ search/ src/ SearchPageListBuilder.php, line 375
Class
- SearchPageListBuilder
- Defines a class to build a listing of search page entities.
Namespace
Drupal\searchCode
public function searchAdminReindexSubmit(array &$form, FormStateInterface $form_state) {
// Send the user to the confirmation page.
$form_state
->setRedirect('search.reindex_confirm');
}