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\Pager\NewPagesPager; |
6 | use stdClass; |
7 | |
8 | /** |
9 | * This is a hook handler interface, see docs/Hooks.md. |
10 | * Use the hook name "NewPagesLineEnding" to register handlers implementing this interface. |
11 | * |
12 | * @stable to implement |
13 | * @ingroup Hooks |
14 | */ |
15 | interface NewPagesLineEndingHook { |
16 | /** |
17 | * This hook is called before a NewPages line is finished. |
18 | * |
19 | * @since 1.35 |
20 | * |
21 | * @param NewPagesPager $pager |
22 | * @param string &$ret the HTML line |
23 | * @param stdClass $row The database row for this page (the recentchanges record and a few extras |
24 | * - see NewPagesPager::getQueryInfo) |
25 | * @param string[] &$classes The classes to add to the surrounding <li> |
26 | * @param string[] &$attribs Associative array of other HTML attributes for the <li> element. |
27 | * Currently only data attributes reserved to MediaWiki are allowed |
28 | * (see Sanitizer::isReservedDataAttribute). |
29 | * @return bool|void True or no return value to continue or false to abort |
30 | */ |
31 | public function onNewPagesLineEnding( $pager, &$ret, $row, &$classes, &$attribs ); |
32 | } |