Jump to content

Manual:Hooks/RecentChangesPurgeRows

From mediawiki.org
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]