Manual:Hooks/ArticleContentOnDiff/ja
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:フック </tvar>.</translate>
<translate> For examples of extensions using this hook, see <tvar name=cat>Category:ArticleContentOnDiff extensions/ja</tvar>.</translate>
詳細
Use this to change the content in this area or how it is loaded.
- $diffEngine - DifferenceEngine
- $output - OutputPage オブジェクト ($wgOut )