function LocaleTranslation::destruct
Same name in other branches
- 9 core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::destruct()
- 10 core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::destruct()
- 11.x core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::destruct()
Overrides DestructableInterface::destruct
File
-
core/
modules/ locale/ src/ LocaleTranslation.php, line 149
Class
- LocaleTranslation
- String translator using the locale module.
Namespace
Drupal\localeCode
public function destruct() {
foreach ($this->translations as $context) {
foreach ($context as $lookup) {
if ($lookup instanceof DestructableInterface) {
$lookup->destruct();
}
}
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.