public static function onCategoryViewer_doCategoryQuery( string $type, IResultWrapper $result ) { ... }Attach hook: In extension.json:
{ "Hooks": { "CategoryViewer::doCategoryQuery": "MediaWiki\\Extension\\MyExtension\\Hooks::onCategoryViewerdoCategoryQuery" } }Called from: File(s): CategoryViewer.php
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:CategoryViewer::doCategoryQuery extensions.
This hook gives extensions the opportunity to batch load any related data about the pages.
$type
: The category type as a string. Either 'page', 'file' or 'subcat'$result
: IResultWrapper instance, a query result from Wikimedia\Rdbms\IDatabase::select()RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4