Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | namespace MediaWiki\Hook; |
4 | |
5 | use MediaWiki\SpecialPage\ContributionsSpecialPage; |
6 | |
7 | // phpcs:disable Squiz.Classes.ValidClassName.NotCamelCaps |
8 | /** |
9 | * This is a hook handler interface, see docs/Hooks.md. |
10 | * Use the hook name "SpecialContributions::getForm::filters" to register handlers implementing this interface. |
11 | * |
12 | * This hook is run for any ContributionsSpecialPage, not just SpecialContributions. |
13 | * |
14 | * @stable to implement |
15 | * @ingroup Hooks |
16 | */ |
17 | interface SpecialContributions__getForm__filtersHook { |
18 | /** |
19 | * This hook is called with a list of filters to render on Special:Contributions. |
20 | * |
21 | * @since 1.35 |
22 | * |
23 | * @param ContributionsSpecialPage $sp Special page object, for context |
24 | * @param array &$filters List of filter object definitions (compatible with OOUI form) |
25 | * @return bool|void True or no return value to continue or false to abort |
26 | */ |
27 | public function onSpecialContributions__getForm__filters( $sp, &$filters ); |
28 | } |