Manual:Hooks/ChangesListInitRows

From Linux Web Expert

ChangesListInitRows
<translate> Available from <tvar name=1><translate> version <tvar (Gerrit change 121121)</tvar></translate>
Batch process change list rows prior to rendering.
<translate> Define function:</translate>
public static function onChangesListInitRows( ChangesList $changesList, $rows ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"ChangesListInitRows": "MediaWiki\\Extension\\MyExtension\\Hooks::onChangesListInitRows"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> changes/ChangesList.php
<translate> Function(s):</translate> initChangesListRows
<translate> Interface:</translate> ChangesListInitRowsHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:ChangesListInitRows extensions</tvar>.</translate>


Details

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