item->display_name; $host = [ new StateBall($this->item->host->state->getStateText(), StateBall::SIZE_MEDIUM), ' ', $this->item->host->display_name ]; $host = new Link($host, Links::host($this->item->host), ['class' => 'subject']); if ($this->getNoSubjectLink()) { $service = new HtmlElement('span', Attributes::create(['class' => 'subject']), Text::create($service)); } else { $service = new Link($service, Links::service($this->item, $this->item->host), ['class' => 'subject']); } return [Html::sprintf(t('%s on %s', ' on '), $service, $host)]; } protected function init(): void { parent::init(); if ($this->list->getNoSubjectLink()) { $this->setNoSubjectLink(); } $this->list->addMultiselectFilterAttribute( $this, Filter::all( Filter::equal('service.name', $this->item->name), Filter::equal('host.name', $this->item->host->name) ) ); $this->list->addDetailFilterAttribute( $this, Filter::all( Filter::equal('name', $this->item->name), Filter::equal('host.name', $this->item->host->name) ) ); } }