LocaleTranslation::destruct

public LocaleTranslation::destruct()

Performs destruct operations.

Overrides DestructableInterface::destruct

File

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

Class

LocaleTranslation
String translator using the locale module.

Namespace

Drupal\locale

Code

public function destruct() {
  foreach ($this->translations as $context) {
    foreach ($context as $lookup) {
      if ($lookup instanceof DestructableInterface) {
        $lookup->destruct();
      }
    }
  }
}
doc_Drupal
2016-10-29 09:24:11
Comments
Leave a Comment

Please login to continue.