<?php

namespace MediaWiki\Hook;

use Skin;

/**
 * @stable to implement
 * @ingroup Hooks
 */
interface SiteNoticeBeforeHook {
	/**
	 * This hook is called before the sitenotice/anonnotice is composed.
	 *
	 * @since 1.35
	 *
	 * @param string &$siteNotice HTML returned as the sitenotice
	 * @param Skin $skin
	 * @return 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.
	 */
	public function onSiteNoticeBefore( &$siteNotice, $skin );
}