*/ class HostRenderer extends BaseHostAndServiceRenderer { public function assembleAttributes($item, Attributes $attributes, string $layout): void { parent::assembleAttributes($item, $attributes, $layout); $attributes->get('class')->addValue('host'); } protected function createSubject($item, string $layout): ValidHtml { if ($layout === 'header') { return new HtmlElement('span', new Attributes(['class' => 'subject']), new Text($item->display_name)); } return new Link($item->display_name, Links::host($item), ['class' => 'subject']); } }