public function LoggerService::hasChannel in Purge 8.3
Check whether the given channel is registered.
Parameters
string $id: The identifier of the channel part.
Return value
true|false Whether the given channel is registered or not.
Overrides LoggerServiceInterface::hasChannel
1 call to LoggerService::hasChannel()
- LoggerService::get in src/
Logger/ LoggerService.php - Retrieve a channel part instance.
File
- src/
Logger/ LoggerService.php, line 171
Class
- LoggerService
- Provides logging services to purge and its submodules, via a single channel.
Namespace
Drupal\purge\LoggerCode
public function hasChannel($id) {
foreach ($this->config as $channel) {
if ($channel['id'] === $id) {
return TRUE;
}
}
return FALSE;
}