Manual:Hooks/PageHistoryPager::doBatchLookups
Appearance
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": "MediaWiki\\Extension\\MyExtension\\Hooks::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.
Details
[edit]If the hook handler returns false, the regular behavior of HistoryPager::doBatchLookups
is skipped.
$pager
: HistoryPager object$result
: Wikimedia\Rdbms\IResultWrapper instance