You are here

protected function MiconIconizeTrait::getMiconStringTranslation in Micon 8

Same name and namespace in other branches
  1. 2.x src/MiconIconizeTrait.php \Drupal\micon\MiconIconizeTrait::getMiconStringTranslation()

Gets the string translation service.

Return value

\Drupal\Core\StringTranslation\TranslationInterface The string translation service.

File

src/MiconIconizeTrait.php, line 52

Class

MiconIconizeTrait
Wrapper methods for \Drupal\micon\MiconIconize.

Namespace

Drupal\micon

Code

protected function getMiconStringTranslation() {
  if (!$this->stringTranslation) {
    $this->stringTranslation = \Drupal::service('string_translation');
  }
  return $this->stringTranslation;
}