aboutsummaryrefslogtreecommitdiffstats
path: root/includes/skins/Hook/SkinTemplateToolboxEndHook.php
blob: 99b64e90dbb13283fa039ccf3300fd92f61efc05 (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
<?php

namespace MediaWiki\Hook;

use QuickTemplate;

/**
 * @stable for implementation
 * @ingroup Hooks
 */
interface SkinTemplateToolboxEndHook {
	/**
	 * This hook is called by SkinTemplate skins after toolbox links have
	 * been rendered (useful for adding more).
	 *
	 * @since 1.35
	 *
	 * @param QuickTemplate $sk QuickTemplate based skin template running the hook
	 * @param bool $dummy Called when SkinTemplateToolboxEnd is used from a BaseTemplate skin,
	 *   extensions that add support for BaseTemplateToolbox should watch for this
	 *   dummy parameter with "$dummy=false" in their code and return without echoing
	 *   any HTML to avoid creating duplicate toolbox items.
	 * @return bool|void True or no return value to continue or false to abort
	 */
	public function onSkinTemplateToolboxEnd( $sk, $dummy );
}