LocaleTranslation::reset

public 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

core/modules/locale/src/LocaleTranslation.php, line 138

Class

LocaleTranslation
String translator using the locale module.

Namespace

Drupal\locale

Code

public function reset() {
  unset($this->translateEnglish);
  $this->translations = array();
}
doc_Drupal
2016-10-29 09:24:11
Comments
Leave a Comment

Please login to continue.