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