setNoSubjectLink($this->list->getNoSubjectLink()); $this->list->addDetailFilterAttribute($this, Filter::equal('name', $this->item->name)); } protected function assembleColumns(HtmlDocument $columns) { $serviceStats = new ServiceStatistics($this->item); $serviceStats->setBaseFilter(Filter::equal('servicegroup.name', $this->item->name)); if ($this->list->hasBaseFilter()) { $serviceStats->setBaseFilter( Filter::all($serviceStats->getBaseFilter(), $this->list->getBaseFilter()) ); } $columns->addFrom($serviceStats, function (BaseHtmlElement $item) { $item->getAttributes()->add(['class' => 'col']); $item->setTag('div'); return $item; }); } protected function assembleTitle(BaseHtmlElement $title) { $title->addHtml( $this->getNoSubjectLink() ? new HtmlElement( 'span', Attributes::create(['class' => 'subject']), Text::create($this->item->display_name) ) : new Link($this->item->display_name, Links::servicegroup($this->item), ['class' => 'subject']), new HtmlElement('br'), Text::create($this->item->name) ); } }