The generated links are now always known links.
All users of the hook 'SkinEditSectionLinks' in extensions set
'options' => [ 'noclasses', 'known' ]
https://gerrit.wikimedia.org/g/mediawiki/extensions/TinyMCE/+/
5f48eb9acd19062a5d6e731ef34b93ef62d3e730/TinyMCE.hooks.php#291
https://gerrit.wikimedia.org/g/mediawiki/extensions/VisualEditor/+/
857c1bd3d14ce3a2a98a7d9743fc6120f7d91e9e/includes/VisualEditorHooks.php#617
This change makes it easier to migrate to LinkRenderer in
Ifc170abc958add28a2fe08aa0c44af83c6f7cad8 without legacy options.
Change-Id: Ia5d151b81dabce9560045b45886f2c77abf975da
- text - String for the text
- attribs - Array of attributes
- query - Array of query parameters to add to the URL
- - options - Array of options for Linker::link
$lang: The language code to use for the link in the wfMessage function
'SkinGetPoweredBy': TODO
'text' => $this->msg( 'editsection' )->inLanguage( $lang )->text(),
'targetTitle' => $nt,
'attribs' => $attribs,
- 'query' => [ 'action' => 'edit', 'section' => $section ],
- 'options' => [ 'noclasses', 'known' ]
+ 'query' => [ 'action' => 'edit', 'section' => $section ]
]
];
$linksHtml = [];
foreach ( $links as $k => $linkDetails ) {
- $linksHtml[] = Linker::link(
+ $linksHtml[] = Linker::linkKnown(
$linkDetails['targetTitle'],
htmlspecialchars( $linkDetails['text'] ),
$linkDetails['attribs'],
- $linkDetails['query'],
- $linkDetails['options']
+ $linkDetails['query']
);
}