Implements \Drupal\Core\Form\FormInterface::submitForm().
Overrides FormInterface::submitForm
public function submitForm(array &$form, array &$form_state) {
if ($form['confirm']) {
search_reindex();
drupal_set_message(t('The index will be rebuilt.'));
$form_state['redirect'] = 'admin/config/search/settings';
return;
}
}