Manual:Hooks/SpecialWhatLinksHereQuery
Appearance
| SpecialWhatLinksHereQuery | |
|---|---|
| Available from version 1.43.0 (Gerrit change 1073191) Use this hook to modify the query used by Special:WhatLinksHere. | |
| Define function: | public static function onSpecialWhatLinksHereQuery( string $table, array $data, Wikimedia\Rdbms\SelectQueryBuilder $queryBuilder ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"SpecialWhatLinksHereQuery": "MediaWiki\\Extension\\MyExtension\\Hooks::onSpecialWhatLinksHereQuery"
}
}
|
| Called from: | File(s): Specials/SpecialWhatLinksHere.php |
| Interface: | SpecialWhatLinksHereQueryHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:SpecialWhatLinksHereQuery extensions.