aboutsummaryrefslogtreecommitdiffstats
path: root/includes/skins/Hook/SkinCopyrightFooterHook.php
blob: d1ab38f702cd41fff8b02a6ad54a78523d74a74a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<?php

namespace MediaWiki\Hook;

use MediaWiki\Title\Title;

/**
 * This is a hook handler interface, see docs/Hooks.md.
 * Use the hook name "SkinCopyrightFooter" to register handlers implementing this interface.
 *
 * @stable to implement
 * @ingroup Hooks
 */
interface SkinCopyrightFooterHook {
	/**
	 * Use this hook for site and per-namespace customization of the copyright notice as raw HTML.
	 *
	 * @since 1.35
	 * @deprecated since 1.43, use SkinCopyrightFooterMessage hook instead.
	 *
	 * @param Title $title Displayed page title
	 * @param string $type Set to 'normal' or 'history' for old/diff views
	 * @param string &$msg Overridable message, usually 'copyright' or 'history_copyright'.
	 *   This message must be in HTML format, not wikitext!
	 * @param string &$link Overridable HTML link to be passed into the message as $1
	 * @return bool|void True or no return value to continue or false to abort
	 */
	public function onSkinCopyrightFooter( $title, $type, &$msg, &$link );
}