Manual:Hooks/EnhancedChangesListModifyLineData

EnhancedChangesListModifyLineData
Available from version 1.26.0
Modify data used to build a grouped recent change inner line in Special:RecentChanges
Define function:
public static function onEnhancedChangesListModifyLineData( $changesList, &$data, $block, $rc ) { ... }
Attach hook: In extension.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, see Manual:Hooks .
For examples of extensions using this hook, see Category: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 classes 1.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