Manual:Hooks/DifferenceEngineAfterLoadNewText
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 $differenceEngine ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"DifferenceEngineAfterLoadNewText": "MediaWiki\\Extension\\MyExtension\\Hooks::onDifferenceEngineAfterLoadNewText"
}
}
|
Called from: | File(s): diff/DifferenceEngine.php Function(s): loadNewText |
Interface: | DifferenceEngineAfterLoadNewTextHook.php |
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