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