Movatterモバイル変換


[0]ホーム

URL:


Jump to content
MediaWiki
Search

Manual:Hooks/EnhancedChangesListModifyLineData

From mediawiki.org
<Manual:Hooks
EnhancedChangesListModifyLineData
Available fromversion 1.26.0
Modify data used to build a grouped recent change inner line in Special:RecentChanges
Define function:
publicstaticfunctiononEnhancedChangesListModifyLineData($changesList,&$data,$block,$rc){...}
Attach hook:Inextension.json:
{"Hooks":{"EnhancedChangesListModifyLineData":"MediaWiki\\Extension\\MyExtension\\Hooks::onEnhancedChangesListModifyLineData"}}
Called from:File(s):changes/EnhancedChangesList.php
Function(s):getLineData
Interface:EnhancedChangesListModifyLineDataHook.php

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

Details

[edit]

Allows extensions to modify the data used to build a grouped recent change inner line in Special:RecentChanges

  • $changesList: EnhancedChangesList object
  • &$data: An array with all the components that will be joined in order to create the line
  • $block: An array of RecentChange objects in that group
  • $rc: The RecentChange object for this line
  • &$classes: An array with CSS classes1.28+
  • &$attribs: An array of other HTML attributes for the<tr> element. Currently only data attributes reserved to MediaWiki are allowed.1.30+

See also

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

[8]ページ先頭

©2009-2025 Movatter.jp