Debian Codegraph @

includes/specials/Hook/SpecialWhatLinksHereQueryHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 use Wikimedia\Rdbms\SelectQueryBuilder;
6
7 /**
8 * This is a hook handler interface, see docs/Hooks.md.
9 * Use the hook name "SpecialWhatLinksHereQueryHook" to register handlers implementing this interface.
10 *
11 * @stable to implement
12 * @ingroup Hooks
13 */
14 interface SpecialWhatLinksHereQueryHook {
15 /**
16 * Use this hook to modify the query used by Special:WhatLinksHere.
17 * Implement the `SpecialPageBeforeFormDisplay` hook as well to add new
18 * elements to the form, which then contribute to the `$data` parameter
19 * of this hook.
20 *
21 * @since 1.43
22 *
23 * @param string $table table name
24 * @param array $data Data submitted from the form, as processed by `HTMLForm`
25 * @param SelectQueryBuilder $queryBuilder Query builder for altering the query being run
26 *
27 * @return void Un-abortable hook
28 */
29 public function onSpecialWhatLinksHereQuery(
30 $table,
31 $data,
32 $queryBuilder
33 );
34 }