Manual:Hooks/SpecialPrefixIndexQuery

Category:MediaWiki hooks#SpecialPrefixIndexQuery Category:Hooks added in MediaWiki 1.42.0#SpecialPrefixIndexQuery
SpecialPrefixIndexQuery
Available from version 1.42.0 (Gerrit change 961226)
Use this hook to modify the query used by Special:PrefixIndex.
Define function:
public static function onSpecialPrefixIndexQuery( array $fieldData, Wikimedia\Rdbms\SelectQueryBuilder $queryBuilder ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"SpecialPrefixIndexQuery": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialPrefixIndexQuery"
	}
}
Called from: File(s): specials/SpecialPrefixIndex.phpCategory:MediaWiki hooks included in SpecialPrefixIndex.php#SpecialPrefixIndexQuery
Interface: SpecialPrefixIndexQueryHook.php

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

Category:Hooks added in MediaWiki 1.42.0 Category:MediaWiki hooks Category:MediaWiki hooks included in SpecialPrefixIndex.php