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 ChangesList; |
6 | use ChangesListFilterGroup; |
7 | use MediaWiki\User\User; |
8 | use Skin; |
9 | |
10 | /** |
11 | * This is a hook handler interface, see docs/Hooks.md. |
12 | * Use the hook name "FetchChangesList" to register handlers implementing this interface. |
13 | * |
14 | * @stable to implement |
15 | * @ingroup Hooks |
16 | */ |
17 | interface FetchChangesListHook { |
18 | /** |
19 | * This hook is called when fetching the ChangesList derivative for a particular user. |
20 | * |
21 | * @since 1.35 |
22 | * |
23 | * @param User $user User the list is being fetched for |
24 | * @param Skin $skin Skin object to be used with the list |
25 | * @param ChangesList|null &$list Defaults to NULL. Change it to an object instance and |
26 | * return false to override the list derivative used. |
27 | * @param ChangesListFilterGroup[] $groups Added in 1.34 |
28 | * @return bool|void True or no return value to continue, or false to override the list |
29 | * derivative used |
30 | */ |
31 | public function onFetchChangesList( $user, $skin, &$list, $groups ); |
32 | } |