Wikibase
MediaWiki Wikibase extension
|
This is a hook handler interface, see docs/Hooks.md in MediaWiki core. More...
Public Member Functions | |
onWikibaseClientSiteLinksForItem (Item $item, array &$siteLinks, UsageAccumulator $usageAccumulator) | |
Called by Wikibase::Client::Hooks::SiteLinksForDisplayLookup to allow altering the sitelinks used in language links and the other project's sidebar. | |
This is a hook handler interface, see docs/Hooks.md in MediaWiki core.
Use the hook name "WikibaseClientSiteLinksForItem" to register handlers implementing this interface.
Wikibase\Client\Hooks\WikibaseClientSiteLinksForItemHook::onWikibaseClientSiteLinksForItem | ( | Item | $item, |
array & | $siteLinks, | ||
UsageAccumulator | $usageAccumulator ) |
Called by Wikibase::Client::Hooks::SiteLinksForDisplayLookup to allow altering the sitelinks used in language links and the other project's sidebar.
Only called in case the page we are on is linked with an item.
Item | $item | Item the page is linked with. |
SiteLink[] | &$siteLinks | Array containing the site links to display indexed by site global ID. |
UsageAccumulator | $usageAccumulator | A usage accumulator to track the usages of Wikibase entities done by the hook handlers. |
Implemented in Wikibase\Client\Hooks\WikibaseClientHookRunner.