Manual:Hooks/AbortDiffCache/de-formal

From mediawiki.org
This page is a translated version of the page Manual:Hooks/AbortDiffCache and the translation is 20% complete.
AbortDiffCache
Available from version 1.14.0
Can be used to cancel the caching of a diff
Define function:
public static function onAbortDiffCache( DifferenceEngine $diffEngine ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"AbortDiffCache": "MediaWiki\\Extension\\MyExtension\\Hooks::onAbortDiffCache"
	}
}
Called from: File(s): diff/DifferenceEngine.php
Function(s): getDiffBody
Interface: AbortDiffCacheHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:AbortDiffCache extensions/de-formal.

Details

  • $diffEngine: An instance of DifferenceEngine

See also