Manual:Hooks/RecentChangesPurgeRows
Appearance
| RecentChangesPurgeRows | |
|---|---|
| Available from version 1.30.0 (Gerrit change 351146) Called when old recentchanges rows are purged, after deleting those rows but within the same transaction. | |
| Define function: | public static function onRecentChangesPurgeRows( array $rows ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"RecentChangesPurgeRows": "MediaWiki\\Extension\\MyExtension\\Hooks::onRecentChangesPurgeRows"
}
}
|
| Called from: | File(s): jobqueue/jobs/RecentChangesUpdateJob.php Function(s): purgeExpiredRows |
| Interface: | RecentChangesPurgeRowsHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:RecentChangesPurgeRows extensions.
Details
[edit]$rows: The deleted rows as an array of recentchanges row objects (with up to$wgUpdateRowsPerQueryitems).