Jump to navigation Jump to search
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": "MyExtensionHooks::onApiQueryWatchlistExtractOutputData"

For MediaWiki ≤1.25:

$wgHooks['ApiQueryWatchlistExtractOutputData'][] = 'MyExtensionHooks::onApiQueryWatchlistExtractOutputData';
Called from:File(s): api/ApiQueryWatchlist.php
Function(s): extractOutputData

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


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