function TranslatorInterface::reset

Same name in other branches
  1. 9 core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php \Drupal\Core\StringTranslation\Translator\TranslatorInterface::reset()
  2. 8.9.x core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php \Drupal\Core\StringTranslation\Translator\TranslatorInterface::reset()
  3. 10 core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php \Drupal\Core\StringTranslation\Translator\TranslatorInterface::reset()

Resets translation cache.

Since most translation systems implement some form of caching, this provides a way to delete that cache.

3 methods override TranslatorInterface::reset()
LocaleTranslation::reset in core/modules/locale/src/LocaleTranslation.php
Resets translation cache.
StaticTranslation::reset in core/lib/Drupal/Core/StringTranslation/Translator/StaticTranslation.php
Resets translation cache.
TranslationManager::reset in core/lib/Drupal/Core/StringTranslation/TranslationManager.php
Resets translation cache.

File

core/lib/Drupal/Core/StringTranslation/Translator/TranslatorInterface.php, line 31

Class

TranslatorInterface
Interface for objects capable of string translation.

Namespace

Drupal\Core\StringTranslation\Translator

Code

public function reset();

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.