public function LoggerService::deleteChannels in Purge 8.3
Delete channel parts of which the ID starts with...
Parameters
string $id_starts_with: Prefix to match all channel parts with to delete.
Overrides LoggerServiceInterface::deleteChannels
File
- src/
Logger/ LoggerService.php, line 127
Class
- LoggerService
- Provides logging services to purge and its submodules, via a single channel.
Namespace
Drupal\purge\LoggerCode
public function deleteChannels($id_starts_with) {
foreach ($this->config as $i => $channel) {
if (strpos($channel['id'], $id_starts_with) === 0) {
unset($this->config[$i]);
if (!$this->write) {
$this->write = TRUE;
}
}
}
}