3 namespace MediaWiki\Hook
;
6 * This is a hook handler interface, see docs/Hooks.md.
7 * Use the hook name "RecentChangesPurgeRows" to register handlers implementing this interface.
12 interface RecentChangesPurgeRowsHook
{
14 * This hook is called by RecentChangesUpdateJob when expired recentchanges rows are deleted, after
15 * deleting those rows but within the same database transaction.
18 * @param \stdClass[] $rows Deleted rows as an array of recentchanges row objects (with up to
19 * $wgUpdateRowsPerQuery items)
20 * @return void This hook must not abort, it must return no value
22 public function onRecentChangesPurgeRows( $rows ): void
;