id = $id; $this->label = $label; $this->class = $class; $this->icon = $icon; $this->tooltip = $tooltip; } /** * @inheritDoc */ public function getTemplateData(): array { $icon = $this->icon; $headingClass = $icon ? 'mw-checkbox-hack-button mw-ui-icon mw-ui-button mw-ui-quiet ' . 'mw-ui-icon-element mw-ui-icon-wikimedia-' . $icon : ''; return [ 'id' => $this->id, 'label' => $this->label, 'heading-class' => $headingClass, 'html-vector-menu-heading-attributes' => '', 'html-vector-menu-checkbox-attributes' => '', 'html-vector-heading-icon' => '', 'class' => $this->class, 'html-tooltip' => $this->tooltip, 'checkbox-class' => '', ]; } }