public function LocaleTranslation::destruct in Drupal 10
Same name and namespace in other branches
- 8 core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::destruct()
- 9 core/modules/locale/src/LocaleTranslation.php \Drupal\locale\LocaleTranslation::destruct()
Performs destruct operations.
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();
}
}
}
}