skin = $skin; } /** * @inheritDoc */ public function getTemplateData(): array { $skin = $this->skin; // Note: This data is also passed to legacy template where it is unused. $optOutUrl = [ 'text' => $skin->msg( 'vector-opt-out' )->text(), 'href' => SpecialPage::getTitleFor( 'Preferences', false, 'mw-prefsection-rendering-skin' )->getLinkURL( 'useskin=vector&wprov=' . self::OPT_OUT_LINK_TRACKING_CODE ), 'title' => $skin->msg( 'vector-opt-out-tooltip' )->text(), 'active' => false, ]; $htmlData = [ 'link' => $optOutUrl, ]; $component = new VectorComponentMainMenuAction( $skin, $htmlData, [] ); return $component->getTemplateData(); } }