MediaWiki  master
MediaWiki\Hook\ContributionsLineEndingHook Interface Reference

Stable for implementation. More...

Inheritance diagram for MediaWiki\Hook\ContributionsLineEndingHook:

Public Member Functions

 onContributionsLineEnding ( $page, &$ret, $row, &$classes, &$attribs)
 This hook is called before a contributions HTML line is finished. More...
 

Detailed Description

Stable for implementation.

Definition at line 12 of file ContributionsLineEndingHook.php.

Member Function Documentation

◆ onContributionsLineEnding()

MediaWiki\Hook\ContributionsLineEndingHook::onContributionsLineEnding (   $page,
$ret,
  $row,
$classes,
$attribs 
)

This hook is called before a contributions HTML line is finished.

Since
1.35
Parameters
ContribsPager$pageSpecialPage object for contributions
string&$retThe HTML line
stdClass$rowThe DB row for this line
string[]&$classesThe classes to add to the surrounding
string[]&$attribsAssociative array of other HTML attributes for the 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: