You are here

public function LoggerService::destruct in Purge 8.3

Performs destruct operations.

Overrides DestructableInterface::destruct

File

src/Logger/LoggerService.php, line 101

Class

LoggerService
Provides logging services to purge and its submodules, via a single channel.

Namespace

Drupal\purge\Logger

Code

public function destruct() {
  if ($this->write) {
    $this->configFactory
      ->getEditable(self::CONFIG)
      ->set(self::CKEY, $this->config)
      ->save();
    $this->write = FALSE;
  }
}