id = $id; $this->href = $href; $this->label = $label; $this->icon = $icon; $this->event = $event; } /** * @inheritDoc */ public function getTemplateData(): array { return [ 'id' => $this->id, 'href' => $this->href, 'html-vector-button-icon' => Hooks::makeIcon( $this->icon ), 'label' => $this->label, 'is-quiet' => true, 'class' => 'mw-ui-primary mw-ui-progressive', 'event' => $this->event, ]; } }