Jump to content

Extension:Wikibase Repository/Hooks/WikibaseChangeNotification

From mediawiki.org
WikibaseChangeNotification
Available from version ??? (Gerrit change 220167)
Allows notifying any listeners of changes to entities
Define function:
public static function onWikibaseChangeNotification( Wikibase\Lib\Changes\Change $change ) { ... }
Attach hook:
$wgHooks['WikibaseChangeNotification'][] = 'MyExtensionHooks::onWikibaseChangeNotification';
Called from:File(s): Wikibase Repository / repo/includes/Notifications/HookChangeTransmitter.php

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:WikibaseChangeNotification extensions.

Triggered from a Wikibase\Repo\Notifications\ChangeNotifier via a Wikibase\Repo\Notifications\HookChangeTransmitter to notify any listeners of changes to entities. For performance reasons, does not include statement, description and alias diffs (see T113468, T163465).

Parameters

[edit]
  • $change: An instance of Wikibase\Lib\Changes\Change