Extension:ORES/Hooks/ORESRecentChangeScoreSavedHook

ORESRecentChangeScoreSavedHook
Available from versionĀ ???

Define function:
public static function onORESRecentChangeScoreSavedHook( ?MediaWiki\Revision\RevisionRecord $revision, array $scores ) { ... }
Attach hook:
$wgHooks['ORESRecentChangeScoreSavedHook'][] = 'MyExtensionHooks::onORESRecentChangeScoreSavedHook';
Called from:File(s): ORES / includes/Services/FetchScoreJob.php
Function(s): fireORESRecentChangeScoreSavedHook

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

ParametersEdit

  • $revision: An instance of MediaWiki\Revision\RevisionRecord, or null if no revision was round
  • $scores: An array of scores, as returned by ORES\Services\ScoreFetcher::getScores()