link = $link; $this->class = $class; } /** * @inheritDoc */ public function getTemplateData(): array { return $this->link->getTemplateData() + [ 'item-class' => $this->class, 'item-id' => $this->id, ]; } }