Manual:Hooks/ApiQueryWatchlistExtractOutputData

ApiQueryWatchlistExtractOutputData
Available from version 1.29.0 (Gerrit change 315521)
extract row data for ApiQueryWatchlist
Define function:
public static function onApiQueryWatchlistExtractOutputData( ApiQueryWatchlist $module, WatchedItem $watchedItem, array $recentChangesInfo, array &$vals ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ApiQueryWatchlistExtractOutputData": "MediaWiki\\Extension\\MyExtension\\Hooks::onApiQueryWatchlistExtractOutputData"
	}
}
Called from: File(s): api/ApiQueryWatchlist.php
Function(s): extractOutputData
Interface: ApiQueryWatchlistExtractOutputDataHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ApiQueryWatchlistExtractOutputData extensions.


Details

edit
  • $module: ApiQueryWatchlist instance
  • $watchedItem: WatchedItem instance
  • $recentChangeInfo: Array of recent change info data
  • &$vals: Associative array of data to be output for the row

See also

edit