Manual:Hooks/ArticleContentOnDiff/es

From mediawiki.org
This page is a translated version of the page Manual:Hooks/ArticleContentOnDiff and the translation is 33% complete.
ArticleContentOnDiff
Disponible desde versión 1.17.0
Before showing the article content below a diff.
Definir función:
public static function onArticleContentOnDiff( $diffEngine, $output ) { ... }
Attach hook: En extension.json:
{
	"Hooks": {
		"ArticleContentOnDiff": "MediaWiki\\Extension\\MyExtension\\Hooks::onArticleContentOnDiff"
	}
}
Called from: Archivo(s): diff/DifferenceEngine.php
Interface: ArticleContentOnDiffHook.php

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

Detalles

Utilice esto para cambiar el contenido en este área o como se carga.

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