Jump to content

Manual:Hooks/EnhancedChangesListModifyBlockLineData

From mediawiki.org
EnhancedChangesListModifyBlockLineData
Available from version 1.26.0
Modify data used to build a non-grouped entry in Special:RecentChanges
Define function:
public static function onEnhancedChangesListModifyBlockLineData( $changesList, &$data, $rc ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"EnhancedChangesListModifyBlockLineData": "MediaWiki\\Extension\\MyExtension\\Hooks::onEnhancedChangesListModifyBlockLineData"
	}
}
Called from: File(s): changes/EnhancedChangesList.php
Function(s): recentChangesBlockLine
Interface: EnhancedChangesListModifyBlockLineDataHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:EnhancedChangesListModifyBlockLineData extensions.

Details

[edit]

Allows extensions to modify the data used to build a non-grouped entry in Special:RecentChanges

  • $changesList: EnhancedChangesList object
  • &$data: An array with all the components that will be joined in order to create the line
  • $rc: The RecentChange object for this line

See also

[edit]