You are here

protected static function IndexBatchHelper::t in Search API 8

Translates a string to the current language or to a given language.

See also

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

3 calls to IndexBatchHelper::t()
IndexBatchHelper::create in src/IndexBatchHelper.php
Creates an indexing batch for a given search index.
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 47

Class

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

Namespace

Drupal\search_api

Code

protected static function t($string, array $args = [], array $options = []) {
  return static::getStringTranslation()
    ->translate($string, $args, $options);
}