Manual:Hooks/DeletedContributionsLineEnding

DeletedContributionsLineEnding
Available from version 1.24.0 (Gerrit change 198716)
Called before an HTML line for Special:DeletedContributions is finished.
Define function:
public static function onDeletedContributionsLineEnding( DeletedContribsPager $pager, string &$line, $row, array &$classes, array &$attribs ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"DeletedContributionsLineEnding": "MediaWiki\\Extension\\MyExtension\\Hooks::onDeletedContributionsLineEnding"
	}
}
Called from: File(s): specials/pagers/DeletedContribsPager.php
Function(s): formatRow
Interface: DeletedContributionsLineEndingHook.php

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


Details

edit
  • $pager: DeletedContribsPager object
  • &$line: the HTML string representing this line
  • $row: the DB row for this line
  • &$classes: array of CSS classes to add to the surrounding line wrapper
  • &$attribs: associative array of other HTML attributes for the line wrapper. Currently only data attributes reserved to MediaWiki are allowed (see Sanitizer::isReservedDataAttribute). (introduced in MW 1.30+) (added in Gerrit change 336963)

See also

edit