protected static function ReadinessCheckerManager::getSortedCheckers in Automatic Updates 7
Sorts checkers according to priority.
Return value
ReadinessCheckerInterface[] A sorted array of checker objects.
File
- ReadinessCheckers/
ReadinessCheckerManager.php, line 114
Class
- ReadinessCheckerManager
- Defines a chained readiness checker implementation combining multiple checks.
Code
protected static function getSortedCheckers() {
$sorted = [];
foreach (static::getCheckers() as $category => $priorities) {
foreach ($priorities as $checkers) {
krsort($checkers);
$sorted[$category][] = $checkers;
}
$sorted[$category] = array_unique(array_merge(...$sorted[$category]));
}
return $sorted;
}