MediaWiki REL1_39
MediaWiki\Hook\OldChangesListRecentChangesLineHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. 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

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

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

Stability: stable
to implement

Definition at line 15 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: