Manual:Hooks/AbortDiffCache/pl
AbortDiffCache | |
---|---|
Dostępne od wersji version 1.14.0 Can be used to cancel the caching of a diff | |
Zdefiniuj funkcję: | public static function onAbortDiffCache( DifferenceEngine $diffEngine ) { ... }
|
Dołącz hak: | W extension.json:
{
"Hooks": {
"AbortDiffCache": "MediaWiki\\Extension\\MyExtension\\Hooks::onAbortDiffCache"
}
}
|
Called from: | Plik(i): diff/DifferenceEngine.php Function(s): getDiffBody |
Interface: | AbortDiffCacheHook.php |
For more information about attaching hooks, see Podręcznik:Haki .
For examples of extensions using this hook, see Category:AbortDiffCache extensions/pl.
Szczegóły
$diffEngine
: An instance ofDifferenceEngine