Debian Codegraph @

includes/actions/Hook/PageHistoryLineEndingHook.php

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