function LoggerChannel::sortLoggers
Same name in other branches
- 9 core/lib/Drupal/Core/Logger/LoggerChannel.php \Drupal\Core\Logger\LoggerChannel::sortLoggers()
- 8.9.x core/lib/Drupal/Core/Logger/LoggerChannel.php \Drupal\Core\Logger\LoggerChannel::sortLoggers()
- 11.x 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() {
krsort($this->loggers);
return array_merge(...$this->loggers);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.