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 Article; |
6 | |
7 | /** |
8 | * @stable to implement |
9 | * @ingroup Hooks |
10 | */ |
11 | interface ProtectionFormAddFormFieldsHook { |
12 | /** |
13 | * This hook is called after all protection type form fields are added. |
14 | * |
15 | * @since 1.36 |
16 | * |
17 | * @param Article $article Title being (un)protected |
18 | * @param array &$hookFormOptions An array to add form fields to |
19 | * @return bool|void True or no return value to continue or false to abort |
20 | */ |
21 | public function onProtectionFormAddFormFields( $article, &$hookFormOptions ); |
22 | } |