< Manual:Hooks
| 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.
Details
If the hook handler returns false, the regular behavior of HistoryPager::doBatchLookups is skipped.
$pager: HistoryPager object$result: Wikimedia\Rdbms\IResultWrapper instance
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.