You are here

public function LoggerService::deleteChannel in Purge 8.3

Delete a channel part.

Parameters

string $id: The identifier of the channel part.

Overrides LoggerServiceInterface::deleteChannel

File

src/Logger/LoggerService.php, line 114

Class

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

Namespace

Drupal\purge\Logger

Code

public function deleteChannel($id) {
  foreach ($this->config as $i => $channel) {
    if ($channel['id'] === $id) {
      unset($this->config[$i]);
      $this->write = TRUE;
      return;
    }
  }
}