Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/ContributionsLineEnding

From mediawiki.org
<Manual:Hooks
ContributionsLineEnding
Available fromversion 1.13.0
Called before an HTML line forSpecial:Contributions is finished
Define function:
publicstaticfunctiononContributionsLineEnding(MediaWiki\Pager\ContributionsPager$pager,string&$ret,stdClass$row,array&$classes,array&$attribs){...}
Attach hook:Inextension.json:
{"Hooks":{"ContributionsLineEnding":"MediaWiki\\Extension\\MyExtension\\Hooks::onContributionsLineEnding"}}
Called from:File(s):pager/ContributionsPager.php
Interface:ContributionsLineEndingHook.php

For more information about attaching hooks, seeManual:Hooks.
For examples of extensions using this hook, seeCategory:ContributionsLineEnding extensions.


Details

[edit]
  • $pager: MediaWiki\Pager\ContributionsPager object
  • &$ret: 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

[edit]
Retrieved from "https://www.mediawiki.org/w/index.php?title=Manual:Hooks/ContributionsLineEnding&oldid=8028373"
Categories:

[8]ページ先頭

©2009-2025 Movatter.jp