MediaWiki  master
MediaWiki\Storage\Hook\ArticlePrepareTextForEditHook Interface Reference

This is a hook handler interface, see docs/Hooks.md. More...

Inheritance diagram for MediaWiki\Storage\Hook\ArticlePrepareTextForEditHook:

Public Member Functions

 onArticlePrepareTextForEdit ( $wikiPage, $popts)
 This hook is called when preparing text to be saved. More...
 

Detailed Description

This is a hook handler interface, see docs/Hooks.md.

Use the hook name "ArticlePrepareTextForEdit" to register handlers implementing this interface.

Stable to implement

Definition at line 15 of file ArticlePrepareTextForEditHook.php.

Member Function Documentation

◆ onArticlePrepareTextForEdit()

MediaWiki\Storage\Hook\ArticlePrepareTextForEditHook::onArticlePrepareTextForEdit (   $wikiPage,
  $popts 
)

This hook is called when preparing text to be saved.

Since
1.35
Parameters
WikiPage$wikiPageWikiPage being saved
ParserOptions$poptsParser options to be used for pre-save transformation
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\HookContainer\HookRunner.


The documentation for this interface was generated from the following file: