MediaWiki REL1_35
MediaWiki\Hook\SiteNoticeBeforeHook Interface Reference

Stable to implement. More...

Inheritance diagram for MediaWiki\Hook\SiteNoticeBeforeHook:

Public Member Functions

 onSiteNoticeBefore (&$siteNotice, $skin)
 This hook is called before the sitenotice/anonnotice is composed.
 

Detailed Description

Stable to implement.

Definition at line 11 of file SiteNoticeBeforeHook.php.

Member Function Documentation

◆ onSiteNoticeBefore()

MediaWiki\Hook\SiteNoticeBeforeHook::onSiteNoticeBefore ( $siteNotice,
  $skin 
)

This hook is called before the sitenotice/anonnotice is composed.

Since
1.35
Parameters
string&$siteNoticeHTML returned as the sitenotice
Skin$skin
Returns
bool|void True or no return value to continue or false to abort. Return true to allow the normal method of notice selection/rendering to work, or change the value of $siteNotice and return false to alter it.

Implemented in MediaWiki\HookContainer\HookRunner.


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