MediaWiki  master
MediaWiki\Hook\EditFormPreloadTextHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\EditFormPreloadTextHook:

Public Member Functions

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

Detailed Description

Stable to implement.

Definition at line 11 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\HookContainer\HookRunner, and MediaWiki\Api\ApiHookRunner.


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