Manual:Hooks/ArticleContentOnDiff/de-formal

From Linux Web Expert

ArticleContentOnDiff
<translate> Available from <tvar name=1><translate> version <tvar </tvar></translate>
Before showing the article content below a diff.
<translate> Define function:</translate>
public static function onArticleContentOnDiff( $diffEngine, $output ) { ... }
<translate> Attach hook:</translate> <translate> In <tvar name=1>extension.json</tvar>:</translate>
{
	"Hooks": {
		"ArticleContentOnDiff": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleContentOnDiff"
	}
}
<translate> Called from:</translate> <translate> File(s):</translate> diff/DifferenceEngine.php
<translate> Interface:</translate> ArticleContentOnDiffHook.php

<translate> For more information about attaching hooks, see <tvar name=1>Manual:Hooks </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:ArticleContentOnDiff extensions/de-formal</tvar>.</translate>

Details

Use this to change the content in this area or how it is loaded.

  • $diffEngine - the DifferenceEngine
  • $output - the OutputPage object ($wgOut )