Manual:Hooks/ContribsPager::getQueryInfo

From MediaWiki.org
Jump to navigation Jump to search
ContribsPager::getQueryInfo
Available from version 1.13.0
Called before the contributions query is about to run
Define function:
public static function onContribsPager_getQueryInfo( ContribsPager &$pager, array &$queryInfo ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"ContribsPager::getQueryInfo": "MyExtensionHooks::onContribsPagergetQueryInfo"
	}
}

For MediaWiki ≤1.25:

$wgHooks['ContribsPager::getQueryInfo'][] = 'MyExtensionHooks::onContribsPagergetQueryInfo';
Called from:File(s): specials/pagers/ContribsPager.php
Function(s): getQueryInfo

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

Details[edit]