MediaWiki master
MediaWiki\Hook\SpecialWhatLinksHereQueryHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onSpecialWhatLinksHereQuery ( $table, $data, $queryBuilder)
 Use this hook to modify the query used by Special:WhatLinksHere.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "SpecialWhatLinksHereQueryHook" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 14 of file SpecialWhatLinksHereQueryHook.php.

Member Function Documentation

◆ onSpecialWhatLinksHereQuery()

MediaWiki\Hook\SpecialWhatLinksHereQueryHook::onSpecialWhatLinksHereQuery ( $table,
$data,
$queryBuilder )

Use this hook to modify the query used by Special:WhatLinksHere.

Implement the SpecialPageBeforeFormDisplay hook as well to add new elements to the form, which then contribute to the $data parameter of this hook.

Since
1.43
Parameters
string$tabletable name
array$dataData submitted from the form, as processed by HTMLForm
SelectQueryBuilder$queryBuilderQuery builder for altering the query being run
Returns
void Un-abortable hook

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: