MediaWiki REL1_39
MediaWiki\Hook\TitleGetEditNoticesHook Interface Reference

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

Inheritance diagram for MediaWiki\Hook\TitleGetEditNoticesHook:

Public Member Functions

 onTitleGetEditNotices ( $title, $oldid, &$notices)
 Use this hook to add edit notices.
 

Detailed Description

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

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

Stability: stable
to implement

Definition at line 14 of file TitleGetEditNoticesHook.php.

Member Function Documentation

◆ onTitleGetEditNotices()

MediaWiki\Hook\TitleGetEditNoticesHook::onTitleGetEditNotices ( $title,
$oldid,
& $notices )

Use this hook to add edit notices.

Since
1.35
Parameters
Title$titleTitle object for the page the edit notices are for
int$oldidRevision ID that the edit notices are for (or 0 for latest)
array&$noticesArray of notices. Keys are i18n message keys, values are parseAsBlock()ed messages.
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: