You are here

protected static function IndexBatchHelper::formatPlural in Search API 8

Formats a string containing a count of items.

See also

\Drupal\Core\StringTranslation\TranslationInterface::formatPlural()

2 calls to IndexBatchHelper::formatPlural()
IndexBatchHelper::finish in src/IndexBatchHelper.php
Finishes an index batch.
IndexBatchHelper::process in src/IndexBatchHelper.php
Processes an index batch operation.

File

src/IndexBatchHelper.php, line 56

Class

IndexBatchHelper
Provides helper methods for indexing items using Drupal's Batch API.

Namespace

Drupal\search_api

Code

protected static function formatPlural($count, $singular, $plural, array $args = [], array $options = []) {
  return static::getStringTranslation()
    ->formatPlural($count, $singular, $plural, $args, $options);
}