Debian Codegraph @

includes/specials/Hook/DeletedContributionsLineEndingHook.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Hook;
4
5 use MediaWiki\Pager\ContributionsPager;
6 use stdClass;
7
8 /**
9 * This is a hook handler interface, see docs/Hooks.md.
10 * Use the hook name "DeletedContributionsLineEnding" to register handlers implementing this interface.
11 *
12 * @stable to implement
13 * @ingroup Hooks
14 */
15 interface DeletedContributionsLineEndingHook {
16 /**
17 * This hook is called before a DeletedContributions HTML line is finished.
18 *
19 *
20 * @see ContributionsLineEndingHook
21 *
22 * @since 1.35
23 *
24 * @param ContributionsPager $page Pager object for ContributionsPager
25 * @param string &$ret The HTML line
26 * @param stdClass $row The DB row for this line
27 * @param string[] &$classes The classes to add to the surrounding <li>
28 * @param string[] &$attribs Associative array of other HTML attributes for the <li> element.
29 * Currently only data attributes reserved to MediaWiki are allowed
30 * (see Sanitizer::isReservedDataAttribute).
31 * @return bool|void True or no return value to continue or false to abort
32 */
33 public function onDeletedContributionsLineEnding( $page, &$ret, $row,
34 &$classes, &$attribs
35 );
36 }