< Manual:Hooks 
 
      | ApiQueryWatchlistPrepareWatchedItemQueryServiceOptions | |
|---|---|
| Available from version 1.29.0 (Gerrit change 315521) Populate the options to be passed from ApiQueryWatchlist to WatchedItemQueryService. | |
| Define function: | public static function onApiQueryWatchlistPrepareWatchedItemQueryServiceOptions( ApiQueryWatchlist $module, array $params, array &$options ) { ... }
 | 
| Attach hook: | In extension.json: {
	"Hooks": {
		"ApiQueryWatchlistPrepareWatchedItemQueryServiceOptions": "MyExtensionHooks::onApiQueryWatchlistPrepareWatchedItemQueryServiceOptions"
	}
}
 | 
| Called from: | File(s): api/ApiQueryWatchlist.php | 
| Interface: | ApiQueryWatchlistPrepareWatchedItemQueryServiceOptionsHook.php | 
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ApiQueryWatchlistPrepareWatchedItemQueryServiceOptions extensions.
Details
- $module: ApiQueryWatchlist instance
- $params: Array of parameters, as would be returned by $module->extractRequestParams()
- &$options: Array of options for WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo()
See also
    This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.