Manual:フック/ArticleContentOnDiff

This page is a translated version of the page Manual:Hooks/ArticleContentOnDiff and the translation is 67% complete.
ArticleContentOnDiff
バージョン 1.17.0 から利用可能
Before showing the article content below a diff.
関数の定義:
public static function onArticleContentOnDiff( $diffEngine, $output ) { ... }
フックのアタッチ: extension.json 内:
{
	"Hooks": {
		"ArticleContentOnDiff": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleContentOnDiff"
	}
}
呼び出し元: ファイル: diff/DifferenceEngine.php
インターフェイス: ArticleContentOnDiffHook.php

フックの設定についての詳細情報は Manual:フック を参照してください。
このフックを使用する拡張機能の例については、Category:ArticleContentOnDiff extensions/ja を参照してください。

詳細

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

  • $diffEngine - DifferenceEngine
  • $output - OutputPage オブジェクト ($wgOut )