< Manual:Hooks
| 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": "MyExtensionHooks::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
$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 (seeSanitizer::isReservedDataAttribute). (introduced in MW 1.30+) (added in Gerrit change 336963)
See also
- ContributionsLineEnding
- LogEventsListLineEnding
- NewPagesLineEnding
- PageHistoryLineEnding
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.