Manual:Hooks/DifferenceEngineShowDiffPageMaybeShowMissingRevision
DifferenceEngineShowDiffPageMaybeShowMissingRevision | |
---|---|
Available from version 1.29.0 (Gerrit change 322039) called in DifferenceEngine::showDiffPage() when revision data cannot be loaded. | |
Define function: | public static function onDifferenceEngineShowDiffPageMaybeShowMissingRevision( $differenceEngine ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"DifferenceEngineShowDiffPageMaybeShowMissingRevision": "MediaWiki\\Extension\\MyExtension\\Hooks::onDifferenceEngineShowDiffPageMaybeShowMissingRevision"
}
}
|
Called from: | File(s): diff/DifferenceEngine.php Function(s): showDiffPage |
Interface: | DifferenceEngineShowDiffPageMaybeShowMissingRevisionHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:DifferenceEngineShowDiffPageMaybeShowMissingRevision extensions.
Called in DifferenceEngine::showDiffPage()
when revision data cannot be loaded. Return false in order to prevent displaying the missing revision message (i.e. to prevent DifferenceEngine::showMissingRevision()
from being called).
Details
edit- $differenceEngine: DifferenceEngine object