Open main menu

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 $page, string &$line, $row, array &$classes, array &$attribs ) { ... }
Attach hook:

In extension.json:

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

For MediaWiki ‚ȧ1.25:

$wgHooks['DeletedContributionsLineEnding'][] = 'MyExtensionHooks::onDeletedContributionsLineEnding';
Called from:File(s): specials/pagers/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.

DetailsEdit

  • $page: 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 alsoEdit