3 namespace MediaWiki\Api\Hook
;
5 use MediaWiki\Api\ApiQueryWatchlist
;
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "ApiQueryWatchlistPrepareWatchedItemQueryServiceOptions"
10 * to register handlers implementing this interface.
12 * @stable to implement
15 interface ApiQueryWatchlistPrepareWatchedItemQueryServiceOptionsHook
{
17 * Use this hook to populate the options to be passed from ApiQueryWatchlist
18 * to WatchedItemQueryService.
22 * @param ApiQueryWatchlist $module
23 * @param array $params Array of parameters, as would be returned by
24 * $module->extractRequestParams()
25 * @param array &$options Array of options for
26 * WatchedItemQueryService::getWatchedItemsWithRecentChangeInfo()
27 * @return bool|void True or no return value to continue or false to abort
29 public function onApiQueryWatchlistPrepareWatchedItemQueryServiceOptions(
30 $module, $params, &$options