Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/ContributionsToolLinks

From mediawiki.org
<Manual:Hooks
ContributionsToolLinks
Available fromversion 1.11.0
Change tool links above Special:Contributions
Define function:
publicstaticfunctiononContributionsToolLinks($id,MediaWiki\Title\Title$title,array&$tools,SpecialPage$specialPage){...}
Attach hook:Inextension.json:
{"Hooks":{"ContributionsToolLinks":"MediaWiki\\Extension\\MyExtension\\Hooks::onContributionsToolLinks"}}
Called from:File(s):specialpage/ContributionsSpecialPage.php
Interface:ContributionsToolLinksHook.php

For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:ContributionsToolLinks extensions.

Details

[edit]
  • int $id - User identifier
  • Title $title - User page title
  • array &$tools - Array of tool links
  • SpecialPage $specialPage - The SpecialPage instance (can either be ContributionsSpecialPage or DeletedContributionsSpecialPage, however extensions should type against the generic parent type, SpecialPage)
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/ContributionsToolLinks&oldid=7647325"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp