You are here

public function MetatagViewsCacheWrapper::setStringTranslation in Metatag 8

Sets the string translation service to use.

Parameters

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

Return value

$this

Overrides StringTranslationTrait::setStringTranslation

File

metatag_views/src/MetatagViewsCacheWrapper.php, line 383

Class

MetatagViewsCacheWrapper
This class wraps a Views cache plugin.

Namespace

Drupal\metatag_views

Code

public function setStringTranslation(TranslationInterface $translation) {
  return $this->plugin
    ->setStringTranslation($translation);
}