Manual:Hooks/ChangesListInitRows

From MediaWiki.org
Jump to navigation Jump to search
ChangesListInitRows
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.

Details[edit]

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