protected function LoggerChannel::sortLoggers in Drupal 9
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Logger/LoggerChannel.php \Drupal\Core\Logger\LoggerChannel::sortLoggers()
Sorts loggers according to priority.
Return value
array An array of sorted loggers by priority.
1 call to LoggerChannel::sortLoggers()
- LoggerChannel::log in core/
lib/ Drupal/ Core/ Logger/ LoggerChannel.php
File
- core/
lib/ Drupal/ Core/ Logger/ LoggerChannel.php, line 167
Class
- LoggerChannel
- Defines a logger channel that most implementations will use.
Namespace
Drupal\Core\LoggerCode
protected function sortLoggers() {
$sorted = [];
krsort($this->loggers);
foreach ($this->loggers as $loggers) {
$sorted = array_merge($sorted, $loggers);
}
return $sorted;
}