Jump to navigation Jump to search
Available from version 1.24.0 (Gerrit change 198716)
Called before a DeletedContributions HTML line is finished.
Define function:
public static function onDeletedContributionsLineEnding( DeletedContribsPager $page, &$ret, $row, &$classes, &$attribs ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"DeletedContributionsLineEnding": "MyExtensionHooks::onDeletedContributionsLineEnding"

For MediaWiki ≤1.25:

$wgHooks['DeletedContributionsLineEnding'][] = 'MyExtensionHooks::onDeletedContributionsLineEnding';
Called from:File(s): DeletedContribsPager.php
Function(s): formatRow

For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:DeletedContributionsLineEnding extensions.


  • $page: DeletedContribsPager object
  • &$ret: the HTML line
  • $row: the DB row for this line
  • &$classes: the classes to add to the surrounding <li>
  • &$attribs: associative array of other HTML attributes for the <li> element. Currently only data attributes reserved to MediaWiki are allowed (see Sanitizer::isReservedDataAttribute). MW 1.30+ (added in Gerrit change 336963)