| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Hook; |
| 4 | |
| 5 | use MediaWiki\Context\IContextSource; |
| 6 | |
| 7 | /** |
| 8 | * This is a hook handler interface, see docs/Hooks.md. |
| 9 | * Use the hook name "SpecialPrefixIndexGetFormFilters" to register handlers implementing this interface. |
| 10 | * |
| 11 | * @stable to implement |
| 12 | * @ingroup Hooks |
| 13 | */ |
| 14 | interface SpecialPrefixIndexGetFormFiltersHook { |
| 15 | /** |
| 16 | * This hook is called with a list of filters to render on Special:PrefixIndex. |
| 17 | * |
| 18 | * @since 1.42 |
| 19 | * |
| 20 | * @param IContextSource $contextSource |
| 21 | * @param array &$filters List of filter object definitions (compatible with OOUI form) |
| 22 | * @return void Un-abortable hook |
| 23 | */ |
| 24 | public function onSpecialPrefixIndexGetFormFilters( IContextSource $contextSource, array &$filters ); |
| 25 | } |