Manual:Hooks/EditPageGetDiffText
This feature was removed from MediaWiki core in version 1.29.0 (after being deprecated in 1.21.0). Please see EditPageGetDiffContent for an alternative way to use this feature. |
EditPageGetDiffText | |
---|---|
Available from version 1.16.0 (r62740, codereview) Removed in version 1.29.0 Allow modifying the wikitext that will be used in "Show changes" | |
Define function: | public static function onEditPageGetDiffText( $editPage, &$newtext ) { ... }
|
Attach hook: | In extension.json:
{
"Hooks": {
"EditPageGetDiffText": "MediaWiki\\Extension\\MyExtension\\Hooks::onEditPageGetDiffText"
}
}
|
Called from: | File(s): EditPage.php |
Interface: | EditPageGetDiffTextHook.php |
For more information about attaching hooks, see Manual:Hooks .
For examples of extensions using this hook, see Category:EditPageGetDiffText extensions.
Details
edit- $editPage: The EditPage object
- &$newtext: wikitext that will be used as "your version"