MediaWiki REL1_35
MediaWiki\Hook\OldChangesListRecentChangesLineHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\OldChangesListRecentChangesLineHook:

Public Member Functions

 onOldChangesListRecentChangesLine ( $changeslist, &$s, $rc, &$classes, &$attribs)
 Use this hook to customize a recent changes line.
 

Detailed Description

Stable to implement.

Definition at line 12 of file OldChangesListRecentChangesLineHook.php.

Member Function Documentation

◆ onOldChangesListRecentChangesLine()

MediaWiki\Hook\OldChangesListRecentChangesLineHook::onOldChangesListRecentChangesLine (   $changeslist,
$s,
  $rc,
$classes,
$attribs 
)

Use this hook to customize a recent changes line.

Since
1.35
Parameters
OldChangesList$changeslist
string&$sHTML of the form <li>...</li> containing one RC entry
RecentChange$rc
string[]&$classesArray of CSS classes for the <li> element
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 omit the line from RecentChanges and Watchlist special pages

Implemented in MediaWiki\HookContainer\HookRunner.


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