Jump to content

Manual:Hooks/AbortDiffCache/pl

From mediawiki.org
This page is a translated version of the page Manual:Hooks/AbortDiffCache and the translation is 40% complete.
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 of DifferenceEngine

Zobacz też