MediaWiki  master
MediaWiki\Hook\PageHistoryLineEndingHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\PageHistoryLineEndingHook:

Public Member Functions

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

Detailed Description

Stable to implement.

Definition at line 12 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
string[]&$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: