Manual:Hooks/PageHistoryPager::doBatchLookups

PageHistoryPager::doBatchLookups
Available from version 1.26.0 (Gerrit change 204526)
allow performing batch lookups for prefetching information needed for display
Define function:
public static function onPageHistoryPager_doBatchLookups( HistoryPager $pager, Wikimedia\Rdbms\IResultWrapper $result ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"PageHistoryPager::doBatchLookups": "MyExtensionHooks::onPageHistoryPagerdoBatchLookups"
	}
}
Called from: File(s): actions/pagers/HistoryPager.php
Function(s): doBatchLookups
Interface: PageHistoryPager__doBatchLookupsHook.php

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


DetailsEdit

If the hook handler returns false, the regular behavior of HistoryPager::doBatchLookups is skipped.

  • $pager: HistoryPager object
  • $result: Wikimedia\Rdbms\IResultWrapper instance