public function LocaleTranslation::reset

Resets translation cache.

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

Overrides TranslatorInterface::reset

File

drupal/core/modules/locale/lib/Drupal/locale/LocaleTranslation.php, line 70
Contains \Drupal\Core\Language\LocaleTranslation.

Class

LocaleTranslation
String translator using the locale module.

Namespace

Drupal\locale

Code

public function reset() {
  $this->translations = array();
}