Open main menu


Available from version 1.23.0 (Gerrit change 121121)
Batch process change list rows prior to rendering.
Define function:
public static function onChangesListInitRows( ChangesList $changesList, $rows ) { ... }
Attach hook:

In extension.json:

	"Hooks": {
		"ChangesListInitRows": "MyExtensionHooks::onChangesListInitRows"

For MediaWiki ≤1.25:

$wgHooks['ChangesListInitRows'][] = 'MyExtensionHooks::onChangesListInitRows';
Called from:File(s): changes/ChangesList.php
Function(s): initChangesListRows

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


  • $changesList: ChangesList instance
  • $rows: The data that will be rendered. May be a ResultWrapper instance or an array.