Manual:Hooks/WatchlistEditorBuildRemoveLine
From Linux Web Expert
WatchlistEditorBuildRemoveLine | |
---|---|
<translate> Available from <tvar name=1><translate> version <tvar (r66064, codereview)</tvar></translate> Occurs when building remove lines in Special:Watchlist/edit | |
<translate> Define function:</translate> | public static function onWatchlistEditorBuildRemoveLine( array &$tools, MediaWiki\Title\Title $title, bool $redirect, Skin $skin, string &$link ) { ... }
|
<translate> Attach hook:</translate> | <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
"Hooks": {
"WatchlistEditorBuildRemoveLine": "MediaWiki\\Extension\\MyExtension\\Hooks::onWatchlistEditorBuildRemoveLine"
}
}
|
<translate> Called from:</translate> | <translate> File(s):</translate> includes/specials/SpecialEditWatchlist.php |
<translate> Interface:</translate> | WatchlistEditorBuildRemoveLineHook.php |
<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:WatchlistEditorBuildRemoveLine extensions</tvar>.</translate>
Details
- &$tools: array of extra links,
string[]
- $title: Title object
- $redirect: whether the page is a redirect
- $skin: Skin object
- &$link: HTML link to title