You are here

public function ViewsNaturalSortService::finishRebuild in Views Natural Sort 8.2

File

src/ViewsNaturalSortService.php, line 248

Class

ViewsNaturalSortService
Service that manages Views Natural Sort records.

Namespace

Drupal\views_natural_sort

Code

public function finishRebuild($success, $results, $operations) {
  if ($success) {
    $this->messenger
      ->addMessage($this->translator
      ->translate('Index rebuild has completed.'));
    $this->messenger
      ->addMessage($this->translator
      ->translate('Indexed %count.', [
      '%count' => $this->translator
        ->formatPlural($results['entries'], '1 entry', '@count entries'),
    ]));
  }
}