function taxonomy_entity_index_reindex_finished in Taxonomy Entity Index 8
Same name and namespace in other branches
- 7 taxonomy_entity_index.module \taxonomy_entity_index_reindex_finished()
Batch 'finished' callback.
See also
taxonomy_entity_index_admin_form()
taxonomy_entity_index_reindex_entity_type()
1 string reference to 'taxonomy_entity_index_reindex_finished'
- TaxonomyEntityIndexAdminReindexForm::submitForm in src/Form/ TaxonomyEntityIndexAdminReindexForm.php 
- Form submission handler.
File
- ./taxonomy_entity_index.module, line 273 
- Module file for taxonomy_entity_index.
Code
function taxonomy_entity_index_reindex_finished($success, $results, $operations) {
  if ($success) {
    \Drupal::messenger()
      ->addMessage(t('Taxonomy entity index rebuilt successfully.'));
  }
  else {
    // An error occurred.
    \Drupal::messenger()
      ->addError(t('An error occurred while processing the operation.'));
  }
}