function LocaleTranslation::reset

Same name in other branches
  1. 8.9.x core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::reset()
  2. 10 core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::reset()
  3. 11.x core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::reset()

Overrides TranslatorInterface::reset

File

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

Class

LocaleTranslation
String translator using the locale module.

Namespace

Drupal\locale

Code

public function reset() {
    unset($this->translateEnglish);
    $this->translations = [];
}

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