< Manual:Hooks
| ContributionsLineEnding | |
|---|---|
| Available from version 1.13.0 Called before an HTML line for Special:Contributions is finished | |
| Define function: | public static function onContributionsLineEnding( ContribsPager $pager, string $line, $row, array &$classes, array &$attribs ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"ContributionsLineEnding": "MyExtensionHooks::onContributionsLineEnding"
}
}
|
| Called from: | File(s): specials/pagers/ContribsPager.php |
| Interface: | ContributionsLineEndingHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ContributionsLineEnding extensions.
Details
$pager: ContribsPager object&$line: the HTML string representing the line$row: the DB row for this line&$classes: array of CSS classes to apply to the surrounding line wrapper&$attrib: associative array of other HTML attributes to apply to the surrounding line wrapper. Currently only data attributes reserved to MediaWiki are allowed (seeSanitizer::isReservedDataAttribute).
See also
- DeletedContributionsLineEnding
- 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.