getDb()); $this->applyRestrictions($summary); $count = (int) $summary->first()->hosts_down_unhandled; if ($count) { $this->setTitle(sprintf( tp('One unhandled host down', '%d unhandled hosts down', $count), $count )); } return $count; } protected function getUrl(): Url { return Links::hosts()->setParams(['host.state.is_problem' => 'y', 'sort' => 'host.state.severity desc']); } }