MediaWiki master
MediaWiki\Hook\PageHistoryLineEndingHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inherited by MediaWiki\HookContainer\HookRunner.

Public Member Functions

 onPageHistoryLineEnding ( $historyAction, &$row, &$s, &$classes, &$attribs)
 This hook is called right before the <li> is generated for a history line.
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "PageHistoryLineEnding" to register handlers implementing this interface.

Stability: stable
to implement

Definition at line 15 of file PageHistoryLineEndingHook.php.

Member Function Documentation

◆ onPageHistoryLineEnding()

MediaWiki\Hook\PageHistoryLineEndingHook::onPageHistoryLineEnding ( $historyAction,
& $row,
& $s,
& $classes,
& $attribs )

This hook is called right before the <li> is generated for a history line.

Since
1.35
Parameters
HistoryPager$historyAction
stdClass&$rowThe revision row for this line
string&$sThe string representing this parsed line
string[]&$classesArray containing the <li> element classes
array&$attribsAssociative array of other HTML attributes for the <li> element. Currently only data attributes reserved to MediaWiki are allowed (see Sanitizer::isReservedDataAttribute).
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: