Manual:Hooks/ApiQueryWatchlistPrepareWatchedItemQueryServiceOptions
Jump to navigation
Jump to search
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[edit]
$module
: ApiQueryWatchlist instance$params
: Array of parameters, as would be returned by $module->extractRequestParams()&$options
: Array of options for WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo()