MediaWiki REL1_39
MediaWiki\Hook\EditFormPreloadTextHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\EditFormPreloadTextHook:

Public Member Functions

 onEditFormPreloadText (&$text, $title)
 Use this hook to populate the edit form when creating pages.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 14 of file EditFormPreloadTextHook.php.

Member Function Documentation

◆ onEditFormPreloadText()

MediaWiki\Hook\EditFormPreloadTextHook::onEditFormPreloadText ( & $text,
$title )

Use this hook to populate the edit form when creating pages.

Since
1.35
Parameters
string&$textText to preload with
Title$titlePage being created
Returns
bool|void True or no return value to continue or false to abort

Implemented in MediaWiki\Api\ApiHookRunner, and MediaWiki\HookContainer\HookRunner.


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