Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. LocaleTranslation.php

function LocaleTranslation::destruct

Overrides DestructableInterface::destruct

File

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

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();
            }
        }
    }
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal