Extension:Wikibase Repository/Hooks/WikibaseChangeNotification

From Linux Web Expert

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

For more information about attaching hooks, see Manual:Hooks .
For examples of other extensions using this hook, see Category:Wikibase Repository/Hooks/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

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