< Manual:Hooks
| ArticlePrepareTextForEdit | |
|---|---|
| Available from version 1.18.0 (r80428, codereview) Called when preparing text to be saved. | |
| Define function: | public static function onArticlePrepareTextForEdit( WikiPage $wikiPage, ParserOptions $parserOptions ) { ... }
|
| Attach hook: | In extension.json:
{
"Hooks": {
"ArticlePrepareTextForEdit": "MyExtensionHooks::onArticlePrepareTextForEdit"
}
}
|
| Called from: | File(s): Storage/DerivedPageDataUpdater.php |
| Interface: | ArticlePrepareTextForEditHook.php |
For more information about attaching hooks, see Manual:Hooks.
For examples of extensions using this hook, see Category:ArticlePrepareTextForEdit extensions.
Details
$wikiPage: the WikiPage being saved$parserOptions: parser options to be used for pre-save transformation
This article is issued from Mediawiki. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.