You are here

public static function IndexBatchHelper::setStringTranslation in Search API 8

Sets the translation manager.

Parameters

\Drupal\Core\StringTranslation\TranslationInterface $translation_manager: The new translation manager.

1 call to IndexBatchHelper::setStringTranslation()
IndexStatusForm::submitForm in src/Form/IndexStatusForm.php
Form submission handler.

File

src/IndexBatchHelper.php, line 38

Class

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

Namespace

Drupal\search_api

Code

public static function setStringTranslation(TranslationInterface $translation_manager) {
  static::$translationManager = $translation_manager;
}