Jump to content

Manual:Hooks/ArticleContentOnDiff

From mediawiki.org
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
ArticleContentOnDiff
Available from version 1.17.0
Before showing the article content below a diff.
Define function:
public static function onArticleContentOnDiff( $diffEngine, $output ) { ... }
Attach hook: In extension.json:
{
	"Hooks": {
		"ArticleContentOnDiff": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleContentOnDiff"
	}
}
Called from: File(s): Diff/DifferenceEngine.php
Interface: ArticleContentOnDiffHook.php

For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:ArticleContentOnDiff extensions.

Details

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

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