You are here

public function MiconIconizeTrait::setMiconStringTranslation in Micon 8

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

Sets the string translation service to use.

Parameters

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

Return value

$this

File

src/MiconIconizeTrait.php, line 67

Class

MiconIconizeTrait
Wrapper methods for \Drupal\micon\MiconIconize.

Namespace

Drupal\micon

Code

public function setMiconStringTranslation(TranslationInterface $translation) {
  $this->stringTranslation = $translation;
  return $this;
}