Manual:Hooks/ContribsPager::getQueryInfo

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

In extension.json:

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

For MediaWiki ≤1.25:

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

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

Details[edit]

  • &$pager: Pager object for contributions
  • &$queryInfo: The query for the contribs Pager