Manual:Hooks/DifferenceEngineAfterLoadNewText

From MediaWiki.org
Jump to navigation Jump to search
DifferenceEngineAfterLoadNewText
Available from version 1.29.0 (Gerrit change 322039)
called in DifferenceEngine::loadNewText() after the new revision's content has been loaded into the class member variable
Define function:
public static function onDifferenceEngineAfterLoadNewText( $differenceEngine ) { ... }
Attach hook:

In extension.json:

{
	"Hooks": {
		"DifferenceEngineAfterLoadNewText": "MyExtensionHooks::onDifferenceEngineAfterLoadNewText"
	}
}

For MediaWiki ≤1.25:

$wgHooks['DifferenceEngineAfterLoadNewText'][] = 'MyExtensionHooks::onDifferenceEngineAfterLoadNewText';
Called from:File(s): DifferenceEngine.php
Function(s): loadNewText

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

Details[edit]

  • $differenceEngine: DifferenceEngine object